Re: unresolved external symbol _ncerr




Phong,

Are you trying to compile from within  the IDE, or from the command line?
I haven't tried with .NET, but I did try with Visual Studio 6.0, and had no
success compiling from within the IDE, but compiled with no problems from
the command line.

Jim




Phong nguyen wrote:


Hi all.
I try to compile NCTST.CPP (from netcdf-3.5.1-beta13.rar package) under
Windows XP using VC++.Net
The information shows as follows:
Compiling...
stdafx.cpp
Compiling...
netcdf_test.cpp
netcdf.cpp
e:\Documents and Settings\phongnh0211k\Desktop\netcdf_test\netcdf.cpp(921)
: warning C4267: 'argument' : conversion from 'size_t' to 'int', possible
loss of data
ncvalues.cpp
Generating Code...
Linking...
netcdf.obj : error LNK2001: unresolved external symbol _ncerr
netcdf.obj : error LNK2001: unresolved external symbol _ncopts
Debug/netcdf_test.exe : fatal error LNK1120: 2 unresolved externals

I'm sure that I imported netcdf.lib in my project.
Does anyone meet same problem?


Discover Yahoo!
Find restaurants, movies, travel & more fun for the weekend. Check it out!




  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: