Re: linking c/c++ code against fortran libraries

2008-05-31 Thread Takeshi Enomoto
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

Re: linking c/c++ code against fortran libraries

2008-05-31 Thread Mark Moll
On May 31, 2008, at 8:21 AM, Takeshi Enomoto wrote: Hi, However, to properly link against libfoo.a I also need to include -lgfortran. With a fortran compiler, necessary libraries will be linked. Yes, but I can't specify in a Portfile two compilers (one for compiling c/c++ code, and one

linking c/c++ code against fortran libraries

2008-05-29 Thread Mark Moll
There are number of ports that have variants for choosing one the fortran compilers: gcc42, gcc43, and g95. Suppose now that I have port A that includes a library libfoo.a of fortran code. I would like to create a port B that contains C code and depends on this library in port A. However,