[
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?
|
Like he said, this is usually compiler specific. I've done a lot of
mixed programming and I've used the intel compiler to mix c/fortran
(see its docs). Not sure if eclipse has these capabiliites; hence the
bug or feature request report.
On 8/28/06, Doug Schaefer <DSchaefer@xxxxxxx> 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
--
J. Brandon Keith
PO Box 6315
210 Hodges Hall
Morgantown, WV, 26506-6315
Phone: (304) 293-3422 ext. 1430
Fax: (304) 293-5732