g77 mangling problem

Gary L. Hennigan glhenni@cs.sandia.gov
Wed Mar 31 10:12:00 GMT 1999


craig@jcb-sc.com writes:
| >I just noticed a rather bothersome characteristic of g77. I'm trying
| >to link some Fortran functions and subroutines into a C code. If the
| >Fortran function name has any underlines in it g77 appends two
| >underline characters, e.g., "__", otherwise it appends only one
| >underline character.
| 
| Yes, that's how it's documented to work.  See
| 
|   < http://egcs.cygnus.com/onlinedocs/g77_toc.html >
| 
| and look up the relevant items in the docs.

Found it. Thanks. Believe it or not I did look through the docs before 
I sent the email. I missed the -fno-second-underscore option for some
reason though. Sorry about that.

Thanks again,
Gary


More information about the Gcc mailing list