[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030108: Problem linking against netCDF library
- Subject: 20030108: Problem linking against netCDF library
- Date: Wed, 08 Jan 2003 12:47:46 -0700
Ashish,
>Date: Wed, 8 Jan 2003 14:48:13 -0500
>From: ashish arora <address@hidden>
>Organization: University of Kent
>To: address@hidden
>Subject: Problem With netcdf
The above message contained the following:
> I am working on a code odbtest.f which calls many subroutines.This
> code has link to the library netcdf-3.5.0.
>
> Now,I am trying to run this code odbtest.f and these subroutines
> should be linked to this code.But all the subroutines are providing
> "undefined reference error".That mean this main code is not getting
> linked to any subroutine.
>
> I have made all permutation and combinations by reinstalling latest
> netcdf libraries.I made changes which are required in the Makefile
> which were mentioned by you in a query on the website.
>
> CC=/usr/bin/gcc
> #CPPFLAGS=-Df2cFortran
> FC = /usr/bin/f77
> FFLAGS = -Wno-globals
> CXX=/usr/bin/g++
>
>
> I am using g77 compiler....and I am not getting any results.I am still
> getting undefined reference errors.
>
> I compiled all the subroutines to make object file and then sent it to
> odbtest.out and gave a pmake odbtest also.then also these errors are
> still present in the code.
>
> Please help me out since I need this to get going within next 5 days.
>
> Thanx alot,
>
> Best Regards,
> Ashish Arora
I need more information.
Please send me the output from attempting to link together your program.
Include both standard output and standard error.
Regards,
Steve Emmerson <http://www.unidata.ucar.edu>