First let me start off by saying that it has been many years since I've worked with C++. I used to be a comp sci major but bailed on it for mechanical engineering. I've written a program in R to extract data from a netCDF file as well as do other things with said data. The program as a whole works fine, but it is so slow. I want to re-write it in C++. I downloaded the latest stable release of the netCDF distribution (4.0.1). I pointed my compiler (Bloodshed Dev C++ 4.9.9.2) to the necessary libraries. I tried compiling one of their example C++ files
(http://www.unidata.ucar.edu/software...mple_xy_wr.cpp)
however, the compiler gave the following error msgs:
[Linker error] undefined reference to `netCDF::NcFile::NcFile(std::string, netCDF::NcFile::FileMode)'
[Linker error] undefined reference to `netCDF::NcFile::addDim(std::string, long)'
[Linker error] undefined reference to `netCDF::NcFile::addDim(std::string, long)'
etc..
What could be causing this error and how can it be solved?
I'm running Win XP.
Thank you in advance for any help that can be offered.