This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Building a program with C an FORTRAN code
- To: ramiro at labtie dot mmt dot upc dot es, egcs at cygnus dot com
- Subject: Re: Building a program with C an FORTRAN code
- From: N8TM at aol dot com
- Date: Thu, 29 Oct 1998 22:33:50 EST
In a message dated 10/29/98 1:28:25 PM Pacific Standard Time,
ramiro@labtie.mmt.upc.es writes:
> undefined references to
> the functions writen in FORTRAN (witch are referenced from C)
Without further information, the most obvious possibility is that you have not
reconciled the function-name-mangling schemes of the 2 systems. The +ppu
option of HP Fortran is closest to the g77 default; there are several g77
options dealing with post-pended underscores. In either case, nm or objdump
will show the names presented to ld by the .o files.