07-12-2011 04:42 PM
I'm trying to import the netcdf library into my project on LabWindows/CVI 9.0 and having a lot of trouble. I tried downloading the source and putting #include <netcdf.h> in the source code, but that gives me Project Link Errors for all the netcdf functions I'm referencing.
Thinking that the problem was that I didn't have the dll in place, I downloaded the pre-built dll files and used the same #include <netcdf.h> method to no avail.
Finally, if I include libraries from the dll files like netcdfdll.lib in the project, I don't get the undefined symbol errors anymore, but now when the project starts up, it says, "The program can't start because netcdfdll.dll is missing from your computer - try reinstalling the program". This is patently untrue, given that this happens even when I use Options>Generate DLL Import Library and generate the .lib file from the .dll itself, the same thing happens. Am I doing this completely wrong?
07-12-2011 11:46 PM
Where did you put the .dll file ? Have a look at this MSDN article about Windows DLL search paths.