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

Re: 19981008: Testing netcdf 3.4 under Win 32 - fails at testing nc_open



Hi Paul:

One way to proceed is as follows:

    1) use the make files as provided to be sure that works correctly.
    2) try to modify the IDE to get the same options to the compiler. The IDE 
complicates that because of its "higher" level
viewpoint. Look in the Project Settings, C/C++ Tab, Project Options. This shows 
what options are sent to the compiler.

    I'll be gone until next Tuesday. Let me know then if I you are still having 
trouble. Also, If you get it to work, I would
appreciate knowing what the IDE settings should be.

John Caron


-----Original Message-----
From: Unidata Support <address@hidden>
To: address@hidden <address@hidden>
Date: Thursday, October 08, 1998 3:43 PM
Subject: 19981008: Testing netcdf 3.4 under Win 32 - fails at testing nc_open


>>To: <address@hidden>
>>From: "Dr Paul A Bristow" <address@hidden>
>>Subject: Testing netcdf 3.4 under Win 32 - fails at testing nc_open
>>Organization: .
>>Keywords: 199810081959.NAA12950
>
>I am trying to reproduce the (fuller) test of netcdf 3.4 on Win 32 (Win
>95)using MS VC++ Dev studio 5 Sp3.
>I have built the simple test OK and get the expected results.
>But when I try to get the fuller test going I get the failure below:
>*** Testing nc_strerror ... ok
>*** Testing nc_open ... Assertion failed: *xpp != NULL, file
>C:\tyvcprog\program
>s\netcdf\netcdf_std_test\v1hpg.c, line 1095
>Press any key to continue
>file scratch.nc is created OK but then things go pear shaped here:
>int ncx_put_NC(void **xpp, const NC *ncp)
>{
>int status;
>assert(*xpp != NULL);  *xpp == 0  !!!
>I am trying to use the IDE (because the rest of the program uses this and
>MFC), not the make file, and this means some hacking with files and file
>names.  This may be the cause of my difficulty!!
>I am trying to build it as a single console .exe (not using a .dll)  as I
>thought that this would be simplest.  This works OK for the simple nctest,
>apart from some link warning about dll import and export.  I can change the
>C++ modules to use entirely the C++ Standard Library calls OK.
>I got some link errors getopt (I added file getopt.c) and for nc__create and
>nc_open which I 'cured' by substituting later version of file nc.c ver 2.113
>1997/12/12.
>Please can you suggest what I am doing wrong (apart from using C++ &
>Microsoft!)
>
>Many thanks
>
>Paul
>
>Dr Paul A. Bristow, hetp Chromatography, 4 Victoria Road, Wilmslow, Cheshire
>UK SK9 5HN
>Phone +44 1625 520193  FAX +44 1625 252495, email address@hidden
>