Hi Mariusz: Somehow your nmake program has redefined the rule that creates obj files out of c files. Add this to your msoft.mak file (near the top is ok) : .c.obj: <tab> cl $(CFLAGS) /c $*.c where <tab> means the tab key. I've also attached msoft.mak for the src/libsrc directory. Also, look around in your environment to see if there are any variables that define CL or anything like that. I'd like to know if you find anything, so I know how it's done. John -----Original Message----- From: Mariusz Pagowski <address@hidden> To: John Caron <address@hidden> Date: Wednesday, September 23, 1998 9:31 AM Subject: Re: 19980921 netcdf for windows nt > >Hi John, > >I got the new maks.zip. But I still get the same warning messages >when trying to nmake /f msoft.mak and cannot make >nmake /f msoft.mak test with the same error - compiler complaining >about unknown option /o. I looked to the manual - I can't find /o >option for compiler - this is the error message I get: > > >Microsoft (R) Program Maintenance Utility Version 1.62.7076 >Copyright (C) Microsoft Corp 1988-1997. All rights reserved.\n > cl /nologo /W3 /FD /MT /O2 /D "NDEBUG" /D "DLL_NETCDF" /c > t_nc. >c >t_nc.c > cl /nologo /W3 /FD /MT /O2 /D "NDEBUG" /D "DLL_NETCDF" /D > "DLL_ >EXPORT" t_nc.obj netcdf.lib /o t_nc.exe >Command line warning D4002 : ignoring unknown option '/o' >Command line warning D4024 : unrecognized source file type 't_nc.exe', object >fi >le assumed >LINK : fatal error LNK1149: output filename matches input filename >"C:\netcdf-3. >4\src\libsrc\t_nc.exe" >NMAKE : fatal error U1077: 'cl' : return code '0x2' >Stop. > >Thanks, >Mariusz > > >On Mon, 21 Sep 1998, John Caron wrote: > >> >> > >> >I am trying to install netcdf on my alpha dec running windows nt. >> >I transferred netcdf-3.4.zip and maks.zip. I unpacked them >> >( it seesm maks.zip should be rather unpacked in /netcdf-3.4 not >> >/netcdf-3.4/src) and am trying to make the code in /src/libsrc with >> >nmake /f msoft.mak >> >I attach the result with several warning messages. >> >If I try to nmake /f msoft.mak test >> >I get the error about unknown compiler option /o >> >and subsequently file t_nc.exe is not produced. >> >> Hi Mariusz: >> >> Apparently we had an old version of maks.zip. Please reload that file from >> the ftp directory. >> It now points correctly to the file "netcdf-3.4.makvc5.zip", which contains >> nmake files for MS VC++ 5.x. This should work correctly >> by following the directions in the file win32_install in that zip archive. >> >> Let me know if you have any more problems, >> >> John Caron >> address@hidden >> >> >> > >
Attachment:
msoft.mak
Description: Binary data