[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [photran] how to link a Fortran subroutine to a C subroutine in eclipse, and vice versa?
|
What kind of project type have you tried to create? You can create a
mixed-language project with either the Intel plugin (ifort and gcc)
or a Gnu Fortran Executable with gfortran and gcc.
Regards,
Craig
On Aug 28, 2006, at 7:59 AM, Doug Schaefer wrote:
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.
Doug Schaefer
QNX Software Systems
Eclipse CDT Project Lead
http://cdtdoug.blogspot.com
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?
Dear photran user:
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?
For example:
//C codes,in "main.c" file
void main{
void CALLFOR();
CALLFOR();
}
*********************************
//fortran codes, in "callfor.f" file
subroutine callfor()
implicit none
write(*,*)"Hell C Program"
end
**********************************
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!
Thanks a million!
Best regards,
Zhenjie
_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran