Re: Proper way to link Fortran with C++

2010-02-24 Thread Steven G. Johnson
Ralf Wildenhues wrote: The Automake documentation on the other hand states that I should put $(FLIBS) into the apropriate _LDADD or _LIBADD variable. That would include the value of FLIBS before the value of LIBS on the linker command line, contradicting the autoconf documentation. Is there a r

Re: Proper way to link Fortran with C++

2010-02-24 Thread Steven G. Johnson
Ralf Wildenhues wrote: The Automake documentation on the other hand states that I should put $(FLIBS) into the apropriate _LDADD or _LIBADD variable. That would include the value of FLIBS before the value of LIBS on the linker command line, contradicting the autoconf documentation. Is there a r

Re: Proper way to link Fortran with C++

2010-02-24 Thread Ralf Wildenhues
Hello Steven, sorry to bother you. Jö asked this on the Automake mailing list: * Jö Fahlke wrote on Tue, Feb 23, 2010 at 10:06:01AM CET: > Our project uses C++, but some of its optional dependencies require linking > with fortran libraries (like blas). What is the proper way to do this? > > On

Proper way to link Fortran with C++

2010-02-24 Thread Jö Fahlke
Hi! Our project uses C++, but some of its optional dependencies require linking with fortran libraries (like blas). What is the proper way to do this? On the one hand the Autoconf documentation says that the output variable FLIBS should be included after LIBS when linking. This is consistent wi