Peter,
I have just gone through a similar exercise myself. Although I haven't
created a single Makefile yet I suspect it can be done. (I haven't
tried to create a single Makefile because I have a LOT of fortran files
that I would need to add to the .pro file.) The method that I used was
I compiled my fortran code, creating a large library and a single
object file that used to be MAIN in my fortran code. (My MAIN became a
subroutine that I accessed via an Extern "C" function.)
I then modified my .pro file to include:
LIBS += -lg2c -lm
OBJECT += <my fortran object files>
Then it was just a matter of running qmake to generate the Makefile for
qt and life was good.
Hope this helps
Joe
On Feb 28, 2005, at 11:28 AM, Peter J. Bismuti wrote:
Forgive me for posting this question again, I seem to have lost the
earlier replies. I did a search in the archives and it wasn't that
helpful.
I have a mixture of c/c++ and fortran code that I'd like to compile.
How can I alter my makefile to compile/link the fortran source code
with
the c/c++?
Thanks in advance
--
List archive and information: http://lists.trolltech.com/qt-interest/
Joe Mervini
IT Manager
ABQ UV Pollution Solutions, Inc.
11030 Cochiti SE
Albuquerque, NM 87123
505.332.2169 505.332.2175 (fax) 505.710.8575 (mobile)
jamervini@xxxxxxxxx
--
List archive and information: http://lists.trolltech.com/qt-interest/
|