linking c/c++ code against fortran libraries

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


> 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.


More information about the macports-dev mailing list