ncdigest V1 #882

Maybe VS overrides your environment settings (path, include,lib)
You need to duplicate them in Tool \ Options \ Directoris

or use the MS-trick
#pragma comment(lib,"netcdfs.lib")

Regards,
Anton Kavalenka
Lab of Analytical Researches,
Institute of Nuclear Problems,
Belarus State University

----- Original Message ----- 
Sent: Tuesday, June 14, 2005 6:25 AM


>
> ncdigest             Monday, June 13 2005             Volume 01 : Number
882
>
>
>
> Today's Topics:
> Re: unresolved external symbol _ncerr
>
> ----------------------------------------------------------------------
>
> Date: Mon, 13 Jun 2005 00:05:20 -0700 (PDT)
> From: phong nguyen <phongnh0211k@xxxxxxxxx>
> Subject: Re: unresolved external symbol _ncerr
>
> - --0-2094038281-1118646320=:67515
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
> Hi Jim,
> I compiled within the IDE. I haven't used command line yet.
> How did you use command line?
>
> Phong.
>
>
>
>
>
> 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?
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> - --0-2094038281-1118646320=:67515
> Content-Type: text/html; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
> <DIV>
> <DIV>Hi Jim,</DIV>
> <DIV>I compiled within the IDE. I haven't used command line yet.</DIV>
> <DIV>How did you use command line?</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>Phong.<BR><BR></DIV>
> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px;
BORDER-LEFT: #1010ff 2px solid"><BR><BR><BR>Phong,<BR><BR>Are you trying to
compile from within the IDE, or from the command line?<BR>I haven't tried
with .NET, but I did try with Visual Studio 6.0, and had no<BR>success
compiling from within the IDE, but compiled with no problems from<BR>the
command line.<BR><BR>Jim<BR><BR><BR><BR><BR>Phong nguyen
wrote:<BR><BR><BR>Hi all.<BR>I try to compile NCTST.CPP (from
netcdf-3.5.1-beta13.rar package) under<BR>Windows XP using VC++.Net<BR>The
information shows as
follows:<BR>Compiling...<BR>stdafx.cpp<BR>Compiling...<BR>netcdf_test.cpp<BR
>netcdf.cpp<BR>e:\Documents and
Settings\phongnh0211k\Desktop\netcdf_test\netcdf.cpp(921)<BR>: warning
C4267: 'argument' : conversion from 'size_t' to 'int', possible<BR>loss of
data<BR>ncvalues.cpp<BR>Generating Code...<BR>Linking...<BR>netcdf.obj :
error LNK2001: unresolved external symbol _ncerr<BR>netcdf.obj : error
LNK2001: unre!
>  solved
>  external symbol _ncopts<BR>Debug/netcdf_test.exe : fatal error LNK1120: 2
unresolved externals<BR><BR>I'm sure that I imported netcdf.lib in my
project.<BR>Does anyone meet same
problem?<BR><BR><BR></BLOCKQUOTE></DIV><p>__________________________________
________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the
best spam protection around <br>http://mail.yahoo.com
> - --0-2094038281-1118646320=:67515--
>
> ------------------------------
>
> End of ncdigest V1 #882
> ***********************
>


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