This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: fortran/ada/c code linking issues
- From: Ishwar Rattan <ishwar at pali dot cps dot cmich dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 28 Sep 2005 13:54:28 -0400 (EDT)
- Subject: Re: fortran/ada/c code linking issues
- References: <20050928171747.36140.qmail@web40429.mail.yahoo.com>
On Wed, 28 Sep 2005, Brett Grant wrote:
> done, but some of this stuff is a complete mystery to
> me. Anyway, I have a program that is written in
> fortran. It has some subroutines written in C and in
> Ada. When I compile the program on the Suns, I must
> include the flag '-static' in order to get it to
> compile and link correctly. However, on the opterons
> and macs, if I include the flag '-static', it will
> compile, but not link. It says that it can't find
> some gnat library:
>
> /usr/bin/ld: cannot find -lgnat-3.4
> collect2: ld returned 1 exit status
> gnatlink: cannot call /usr/bin/gcc
>
Maybe you have non-shared object on Solaris for gnatlibrary and not
on other systems. Static flag implies that .a version of
library exists for linking.
-ishwar