[MMTK] building on windows with mingw

John Michelsen jmichelz@mail.com
Wed, 17 Jul 2002 14:17:10 -0500


> If the netCDF utilities (e.g. ncdump) work well, then there should be no
> problem with netCDF.
> 
> Which of the examples crash? 
> 
> Konrad.

Well, the netcdf ftp site has been down for the last few days.  I dug around and found some sources and windows binaries but havent been able
to build Scientific_netcdf yet. About half the MMTK examples that will run without netCDF crash with a mmtk_trajectory.pyd error of some sort.

http://puma.dkrz.de/puma/download/netcdf/netcdf-3.4.zip
ftp://ftp.nanotech.wisc.edu/pub/khan/gnu-win32/mingw32/ports/netcdf-3.4.zip


ScientificPython-2.4>setup.py build --compiler=mingw32
gives:

...
C:\Mingw\bin\gcc.exe -mno-cygwin -mdll -static -s build\temp.win32-2.2\Release\s
cientific_netcdf.o build\temp.win32-2.2\Release\Scientific_netcdf.def -LC:/Pytho
n22/Lib/site-packages/ScientificPython-2.4/Src/netcdf-3.4\lib -LC:\Python22\libs
 -lnetcdf -lpython22 -o build\lib.win32-2.2\Scientific\win32\Scientific_netcdf.p
yd
build\temp.win32-2.2\Release\scientific_netcdf.o(.text+0x2e7):Scientific_netcdf.
c: undefined reference to `_imp__ncerr'
build\temp.win32-2.2\Release\scientific_netcdf.o(.text+0x35e):Scientific_netcdf.
c: undefined reference to `_imp__nc_strerror'
build\temp.win32-2.2\Release\scientific_netcdf.o(.text+0x429):Scientific_netcdf.
c: undefined reference to `_imp__nc_put_att_uchar'
...
...
build\temp.win32-2.2\Release\scientific_netcdf.o(.text+0x3630):Scientific_netcdf
.c: undefined reference to `_imp__nc_put_var_text'
build\temp.win32-2.2\Release\scientific_netcdf.o(.text+0x3f54):Scientific_netcdf
.c: undefined reference to `_imp__ncopts'
error: command 'gcc' failed with exit status 1

John

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Save up to $160 by signing up for NetZero Platinum Internet service.
http://www.netzero.net/?refcd=N2P0602NEP8