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.
Thomas, >Date: Fri, 12 Jan 2001 09:33:50 +0100 (MET) >From: address@hidden >Organization: Leibniz-Institut fuer Atmosphaerenphysik >To: address@hidden >Subject: Re: 20010111: netcdf-3.5-beta6 >Keywords: 200101111421.f0BELDo25846 The above message contained the following: > the output is : > [87] | 0| 0|FUNC |GLOB |0| .text|ncainq I see the problem. Your C compiler generates the name "ncainq" from the C function of the same name -- which is exactly right. Your Fortran-90 compiler, however, generates the name "ncainq_" -- which is exactly wrong. Here's one of your Fortran-90 compilation lines: /opt/fortran90/bin/f90 -c -O -w +DA2.0W +parallel +cpp=yes -R8 ftest.F I don't have access to the manual page for the HP-UX 11 Fortran-90 compiler -- so I can't tell if the above options cause the compiler to append the underscore or if there's an option that will prevent the addition of an underscore. I'm afraid that you'll have to investigate that. Please let me know what you discover. Alternatively, you could use the "fort77" compiler to compile the Fortran-77 code rather than the "f90" compiler. This might fix the problem. If you do this, then 1. Go to the top-level source directory. 2. Perform steps 3 through 5 near the end of the INSTALL file. Pay particular attention to the HP-UX B.11.00 example. 3. Set the FC environment variable to the absolute pathname of your Fortran-77 compiler (e.g. "/opt/fortran/bin/fort77"). 4. Set the F90 environment variable to "/opt/fortran90/bin/f90". 5. Perform steps 6 through 9 near the end of the install file. Please keep me informed. Regards, Steve Emmerson <http://www.unidata.ucar.edu>