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

Re: Problem with gfortran and pkg-config



On Thu, Jul 29, 2010 at 12:52:32 +0100, Alastair McKinstry wrote:

>  Hi,
> 
> I've a problem using pkg-config for Fortran programs.
> As shipped in sid (and squeeze), libnetcdf-dev includes a netcdf.pc
> and /usr/include/netcdf.mod
> 
> Now, to compile a fortran90 program I need to include
> gfortran -I /usr/include foo.f90
> 
> to get netcdf.mod in the path. But pkg-config removes -I/usr/include
> from the Cflags line in pkg-config.
> 
> Which is wrong, gfortran not reading /usr/include by default, or
> pkg-config for
> removing /usr/include from CFLAGS ?
> 
Cflags are meant as flags for the C compiler, not the fortran one...
This looks like a misuse of that flag.

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature


Reply to: