Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

DLL error

barakobama
Beginner
548 Views

When I run my application, I got the following message:

"This application has failed to start because netcdf.dll was not found.

Re-installing the application may fix this problem."

I want to use static library not dll and I did set it up properly as you see

in the Linker line as below. The library is "netcdf.lib" not "netcdf.dll".

What am I doing wrong?

Please look at the line I marked as "<==".

Linker Command line:
/OUT:"C:myappmysrc32-VS2005Win32Releasemy32.exe"
/INCREMENTAL:NO /NOLOGO


/LIBPATH:"C:myappmysrc32-VS2005 etcdfWin32Release" <==

/LIBPATH:"C:Program FilesIntelCompilerFortran9.1IA32lib" /MANIFEST /MANIFESTFILE:"Win32Releasemy32.exe.intermediate.manifest" /SUBSYSTEM:CONSOLE /MACHINE:X86 /ERRORREPORT:PROMPT version.lib wsock32.lib spromeps.lib winmm.lib netapi32.lib odbc32.lib odbccp32.lib opengl32.lib glu32.lib
netcdf.lib <==

kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib ".win32 elease g230_lib.lib"

-BO

0 Kudos
1 Reply
Steven_L_Intel1
Employee
548 Views
It is probable that netcdf.lib is not a static library, but is instead an "export library" (also called "import library") that is created when a DLL is built. When you want to link to DLL libraries, you link to the export library .lib and not to a DLL (one cannot link to a DLL directly.)

So your application is dependent on netcdf.dll which is not found in the places Windows wants to see it (directory containing the EXE, default directory, PATH, etc.) You'll need to make sure that netcdf.dll is available.
0 Kudos
Reply