linking c/c++ code against fortran libraries

Takeshi Enomoto takeshi at enomosphere.net
Sat May 31 06:21:26 PDT 2008


Hi,

> However, to properly link against libfoo.a I also need to
> include "-lgfortran".

With a fortran compiler, necessary libraries will be linked.

> What is the right C compiler
> to link against code compiled with g95?

Currently g95 builds against gcc-4.0.4, which is the same source code  
as gcc40 port.

Takeshi


More information about the macports-dev mailing list