RE: [Dev-C++] Mixed Language Programming w/Dev-Cpp
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2002-10-30 09:26:44
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Scott Williams > Sent: Tuesday, October 29, 2002 10:34 PM > To: Dev-Cpp-Users@Lists. Sourceforge. Net > Subject: [Dev-C++] Mixed Language Programming w/Dev-Cpp >=20 >=20 > Hi, >=20 > Wondering if anyone has experience with mixed language programming and > whether it can be done with Dev-Cpp? >=20 > In particular, I'm writing a mathematical simulation in C=20 > (using Dev-Cpp) > and would like to make using of some existing numerical=20 > routines in Fortran. > My C knowledge is necessity-based self-taught and so limited;=20 > don't know > anything about Fortran. Neither do I know much about using > compilers/linkers/etc in command line mode (which is why I=20 > use Dev-Cpp--I > let it worry about that stuff). >=20 > Still, I know that built-in to the gcc interface is the g77=20 > compiler so > there must be a way to compile the fortran source to an=20 > object with g77 and > then link to & call the routines from C. Could it be as=20 > simple as added > fortran source files to my Dev-Cpp project? If so, any=20 > thoughts on how to > prototype the Fortran functions & subfunctions to make them=20 > accessible to > the C calling routines? Well if you download the whole MINGW distribution it contains a Fortran compiler. In theory as i can think of it, if you compile your fortran source code files to .o files and use C-style declarations of those functions in your C source code, you should be able to use them. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |