public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Building a program with C an FORTRAN code
@ 1998-10-29  2:23 Ramiro Alba Queipo
  1998-10-29 14:18 ` Dave Love
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ramiro Alba Queipo @ 1998-10-29  2:23 UTC (permalink / raw)
  To: egcs

Hello everybody:

I am trying to buil a program writen in C wicth has some code in
FORTRAN. The compiling
phase has no problems but when linking the objets together, it finds
undefined references to
the functions writen in FORTRAN (witch are referenced from C), as if
there were not defined
anywhere.

The development environment is:

HARDWARE        :               Intel Pentium Clasic 166 Mhz
S.O.:                          :               Debian/Gnu Linux 2.0
EGCS:                     :               1.0.3 release
LINUX KERNEL:                2.0.34

The same code is working fine in HP-UX 10.20 built by the HP compilers.

Please, when doing a reply send me a copy, as I am not subscribed to
this maling list

Thanks in advance

--
Ramiro Alba
Laboratori de Termotecnia i Energetica

Departament de Maquines i Motors Termics
ETS d'Enginyers Industrials de Terrassa

C/Colom 11

Tf: 34 - 93 739 82 43
Fax: 34 - 93 739 81 01

e-mail: ramiro@labtie.mmt.upc.es




^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Building a program with C an FORTRAN code
@ 1998-10-29 19:35 N8TM
  0 siblings, 0 replies; 7+ messages in thread
From: N8TM @ 1998-10-29 19:35 UTC (permalink / raw)
  To: ramiro, egcs

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1998-11-01  4:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-29  2:23 Building a program with C an FORTRAN code Ramiro Alba Queipo
1998-10-29 14:18 ` Dave Love
1998-10-30  9:53 ` Martin Kahlert
1998-10-30  3:25   ` Building a program with C an FORTRAN code: OK Ramiro Alba Queipo
1998-11-01  4:48     ` Dave Love
1998-10-30  9:53 ` Building a program with C an FORTRAN code Luc Maisonobe
1998-10-29 19:35 N8TM

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).