Building a program with C an FORTRAN code
N8TM@aol.com
N8TM@aol.com
Thu Oct 29 19:35:00 GMT 1998
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.
More information about the Gcc
mailing list