NSF Unidata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unresolved external symbol _ncerr

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.






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!