RE: [Dev-C++] Mixed Language Programming w/Dev-Cpp
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2002-10-30 09:40:13
|
I think there might be acoule of gotchas more to think about. Doesn't fortran have the reversed row/column order for multi-dimensional arrays? Anyway, I assume that there already exists excellent FAQ documents for this kind of problems. /Per W On Wed, 30 Oct 2002, Ioannis Vranos wrote: > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > 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 > > > > > > Hi, > > > > Wondering if anyone has experience with mixed language programming and > > whether it can be done with Dev-Cpp? > > > > In particular, I'm writing a mathematical simulation in C > > (using Dev-Cpp) > > and would like to make using of some existing numerical > > routines in Fortran. > > My C knowledge is necessity-based self-taught and so limited; > > don't know > > anything about Fortran. Neither do I know much about using > > compilers/linkers/etc in command line mode (which is why I > > use Dev-Cpp--I > > let it worry about that stuff). > > > > Still, I know that built-in to the gcc interface is the g77 > > compiler so > > there must be a way to compile the fortran source to an > > object with g77 and > > then link to & call the routines from C. Could it be as > > simple as added > > fortran source files to my Dev-Cpp project? If so, any > > thoughts on how to > > prototype the Fortran functions & subfunctions to make them > > 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 > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |