Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

Re: Installing any netCDF under cygwin



Hi Didier

From the linker errors in make_test.log, I conclude that you have generated object files test_get.o, test_put.o and test_write.o with the gfortran compiler, but are now trying to link them with g77. I base this conclusion on the names that appear in the "undefined reference" errors.

First, they all have one trailing underscore, whereas I would expect g77 to have produced object files requiring two trailing underscores. For some background on this, see the Gnu documentation for the "-ff2c" and "-fsecond-underscore" switches here

http://gcc.gnu.org/onlinedocs/gcc-4.2.0/gfortran/Code-Gen-Options.html#Code-Gen-Options

and note that by default gfortran has "-ff2c" turned off whereas g77 and g95 have it turned on.

Second, there are several references to names like "__gfortran_st_open". These surely suggest gfortran has come into the process somewhere.

I'm afraid I don't know why this has happened. All I can suggest is that you delete everything & restart, setting the FC environment variable to whichever compiler you require. I suggest you try to build the 3.6.2 version as that is known to build out of the box with g77 or gfortran or g95.

--
Mark Hadfield          "Ka puwaha te tai nei, Hoea tahi tatou"
m.hadfield@xxxxxxxxxx
National Institute for Water and Atmospheric Research (NIWA)



===============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
===============================================================================


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690