This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linking c and fortran code


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]