This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>Keywords: 199509180734.AA21069 Craig, > Thanks for your speedy response. I have not yet heard from > Tenon systems about the rather terse error (the simple error code > 1). I will say that dumplib compiles ok and whatever command comes > after that (that is not echoed to the log file) seems to be to > blame. I.e.: > > making `all' in directory /home/cjones/NetCDF/netcdf-232pl2/ncdump > > > > gcc -O -c -I../libsrc -I../port -O ncdump.c > > gcc -O -c -I../libsrc -I../port -O vardata.c > > gcc -O -c -I../libsrc -I../port -O dumplib.c > > *** Error code 1 > > > > Stop. > The Error code 1 is for something AFTER the dumplib compilation-- > perhaps a library build? Anyway, you can imagine my frustration in > dealing with such a useless error code (it doesn't help that the > makefiles that are generated are tough for me to read--I tend to use > very simple makefiles). Although I will try your suggestion and see > if GMT is happy with just the library, I would like to track this down > so that I can use this Unix setup better. Thanks again, The next command that is executed from the Makefile is something like: gcc -o ncdump -O ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a -lm to create the ncdump executable from the 3 compiled objects and the compiled netcdf library. This should be echoed before it's executed. You might try invoking this manually to see if you can see an error message from it. --Russ ______________________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu