This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linking c and fortran code
- To: chris at frostnet dot net
- Subject: Re: Linking c and fortran code
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Fri, 22 Jun 2001 20:11:47 +0200
- CC: gcc-help at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <20010622082356.Z26862@tiger.bubble.frostnet.net>
chris@frostnet.net wrote:
> I'm trying to build an application written in C and Fortran but am having
> trouble linking the fortran and c object files.
>
> I've compiled the c code with gcc under cygwin, and the fortran code with
> microsoft's fortran compiler (there is a large amount of fortran 90 and 95
> code which g77 doesn't grok).
> Sorry that this is a bit off topic; I asked the general cygwin group and
> didn't get any responses.
Well, that's not surprising, because the answers to your (at least the
Fortran related) questions should come from the Microsoft Fortran manual
!
Only that will explain how the EXTERNAL references in the Fortran code
will be `mangled', i.e., whether they get an initial or final
underscore, etc.).
I think you'll be hard pressed to find anyone with a Microsoft Fortran
manual on our lists - Microsoft discontinued their Fortran product four
years ago.
Perhaps you could ask this question in the comp.lang.fortran news group.
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)