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

Re: 20050815:netCDF C++ - compilation error with Visual.Net



Unidata Support <address@hidden> writes:

> ------- Forwarded Message
>
>>To: address@hidden
>>From: "Gordon Erlebacher" <address@hidden>
>>Subject: netCDF C++ - compilation error with Visual.Net
>>Organization: UCAR/Unidata
>>Keywords: 200508151628.j7FGSnko018193
>
> Institution: Florida State University
> Package Version: 3.6.0-p1
> Operating System: Windows XP
> Hardware Information: Dell 8300
> Inquiry: I compiled the sln file with Visual.net and got the following. THe 
> first error seems to be unlikely: it is s basic: the file stddef.h contains: 
>
> typedef _W64 int            ptrdiff_t;
>
> -------
>
> c:\\Program Files\\Microsoft Visual Studio .NET 
> 2003\\Vc7\\include\\stddef.h(102): error C2632: \'int\' followed by \'int\' 
> is illegal
> c:\\Program Files\\Microsoft Visual Studio .NET 
> 2003\\Vc7\\include\\stddef.h(112): warning C4114: same type qualifier used 
> more than once
> c:\\Documents and Settings\\erlebach\\My 
> Documents\\src\\netcdf-3.6.0-p1\\src\\libsrc\\ncx.h(41): warning C4005: 
> \'off_t\' : macro redefinition
>         c:\\Documents and Settings\\erlebach\\My 
> Documents\\src\\netcdf-3.6.0-p1\\src\\libsrc\\ncconfig.h(19) : see previous 
> definition of \'off_t\'
> c:\\Documents and Settings\\erlebach\\My 
> Documents\\src\\netcdf-3.6.0-p1\\src\\libsrc\\ncx.c(1119): fatal error C1189: 
> #error :  \"ix_float implementation\"
> c:\\Program Files\\Microsoft Visual Studio .NET 
> 2003\\Vc7\\include\\stdio.h(70): warning C4114: same type qualifier used more 
> than once
> c:\\Program Files\\Microsoft Visual Studio .NET 
> 2003\\Vc7\\include\\stddef.h(102): error C2632: \'int\' followed by \'int\' 
> is illegal
> c:\\Documents and Settings\\erlebach\\My 
> Documents\\src\\netcdf-3.6.0-p1\\src\\libsrc\\netcdf.h(199): warning C4005: 
> \'off_t\' : macro redefinition
> ncdump fatal error LNK1104: cannot open file \'netcdf.lib\'
> ncgen fatal error LNK1104: cannot open file \'netcdf.lib\'
> tst_netcdf fatal error LNK1181: cannot open input file \'netcdf.lib\'
> nc_test fatal error LNK1104: cannot open file \'netcdf.lib\'
> nctest fatal error LNK1104: cannot open file \'netcdf.lib\'
> c:\\Documents and Settings\\erlebach\\My 
> Documents\\src\\netcdf-3.6.0-p1\\src\\nc_test\\large_files.c(77): warning 
> C4013: \'getopt\' undefined; assuming extern returning int
> large_files fatal error LNK1104: cannot open file \'netcdf.lib\'
> c:\\Documents and Settings\\erlebach\\My 
> Documents\\src\\netcdf-3.6.0-p1\\src\\nc_test\\quick_large_files.c(75): 
> warning C4013: \'getopt\' undefined; assuming extern returning int
> quick_large_files fatal error LNK1104: cannot open file \'netcdf.lib\'
>
>
>
> --
> NOTE: All email exchanges with Unidata User Support are recorded in the
> Unidata inquiry tracking system and then made publicly available
> through the web.  If you do not want to have your interactions made
> available in this way, you must let us know in each email you send to us.
>
> ------- End of Forwarded Message
>
>

Howdy!

Sorry, this is not setting off any bells for me.

The .sln files works fine on the three systems I have to test it on,
but there are so many wild and wonderful things about windows that
it's hard to generalize.

What version of VC++ are you using?

I won't be able to test this out for you until next week, as I am
currently on vacation...

Thanks,

Ed
-- 
Ed Hartnett  -- address@hidden