This is the mail archive of the gcc@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: FORTRAN Calling C!


> Joseph North wrote:

> Hi GCC Folks:

[ Sorry, somehow I missed this question - hence my belated reply ]

>    Allow me to introduce myself: I'm Joseph Roy North, and I'm using
> g77 on a
> Sun Ultra 5 running Solaris 7.  I need some development assistance,
> please.
>    We have legacy FORTRAN software which we are trying to keep in
> operation.
> However, we can use C for new modules.  I have tried to demonstrate a
> FORTRAN driver invoking a C function, somewhat similar to that
> described
> in URL =
> http://www.tc.cornell.edu/Edu/Tutor/Interlanguage/index.shared.html".
> When I run something like "g77 fd.f cfunc.o -lm", I keep getting a
> message like
> symbol "mainl" not resolved.  Module "cfunc.c" has "mainl()" instead
> of the
> usual "main()".  Any ideas on how to solve my problem would be
> gratefully
> appreciated.

You are probably better off following the advice in the g77 manual,
which is at:

http://egcs.cygnus.com/onlinedocs/g77_16.html#SEC522

Hope this helps,

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://gcc.gnu.org/onlinedocs/g77_news.html


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