This should really be part of the tool
chain definition for your Fortran compiler. I know we do this with the GNU tool
chain with the C++ and C files in the same project. You should probably raise a
bug report on this.
From:
photran-bounces@xxxxxxxxxxx [mailto:photran-bounces@xxxxxxxxxxx] On Behalf Of ZhenJie Feng
Sent: Monday, August 28, 2006 9:36
AM
To: Photran
Information
Subject: [photran] how to link a
Fortran subroutine to a C subroutine in eclipse, and vice versa?
I want to call a Fortran subroutine from C subroutine in eclipse3.2. I found I
can not treat this as easy as in Visual Studio. But I like to use eclipse,
so I want to solve this problem.
Would someone please give me some advice?
//C codes,in
"main.c" file
*********************************
//fortran codes, in
"callfor.f" file
write(*,*)"Hell C
Program"
**********************************
If the two
files were put into MS visual studio, they will be compiled and
linked to an executable file correctly.
But when they put into
eclipse3.2 with "managed make fortran project", they can not link
together automaticly. How can I set the eclipse envirement?
Please give me some
advice,or give me some reference article!