472,117 Members | 2,626 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,117 software developers and data experts.

How to link dll in a VS 2008 project?

Hi!

I am making a project in Visual Studio 2008 with making use of integrated Intel Fortran Compiler (ver. 11.1). The program is written in Fortran and uses netCDF for writing results of its calculations.

When I worked with this program using old Compaq Visual Fortran, there were no problems niether with the code nor with netCDF (only 3 files related to netcdf were used: netcdf.fi, netcdf.dll and netcdf.lib). But now, when I rebuilt it in VS 2008, an error occured related to netCDF (as I suggest...). The error text is as follows:

1>Linking...
1>pom2k_CDF.obj : error LNK2019: unresolved external symbol _NF_STRERROR referenced in function _HANDLE_NETCDF_ERROR
1>pom2k_CDF.obj : error LNK2019: unresolved external symbol _NF_DEF_VAR referenced in function _DEF_VAR_NETCDF

and so on (10 errors of this type).

What can be wrong with it? The compiling stage is OK, but on the stage of linking (as shown above) these errors occur...


PS: all project files are *.f (fortran fixed format), also the header netcdf.fi is included in the project and netcdf.dll is put in the project directory. But the errors remain...

Thanks in advance!
Mar 5 '11 #1
2 2992
I've solved the problem. Looks like it was caused by the error of the VS integrated linker. For some reason it did not take the set parameters, therefore it could not link necessary files. Rebuilding the project with setting corresponding parameters solved the problem.
Mar 6 '11 #2
I need using netCDF in Intel FORTRAN project, If it is possible please send your project or sample of your project for me.
It will help me a lot!
My email is
Sincerely yours.
Jan 6 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by yanwan | last post: by
1 post views Thread by Jim Langston | last post: by
4 posts views Thread by Man T | last post: by
3 posts views Thread by =?Utf-8?B?QWRyaWFuTW9ycmlz?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.