This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem mixing Fortran and C


Quoting Andrew Pinski <pinskia@physics.uc.edu>:

> 
> On Apr 9, 2005, at 8:31 PM, apaz@purdue.edu wrote:
> 
> > No, I'm using Linux Redhat on an AMD 32 bits.
> 
> Oh, I just noticed that you are using -static, well
> that is not going to work as it does not bring in the
> dependencies as the way linking archives work.
> You either don't use -static which is better anyways
> or use "-Wl,--whole-archive -lgfortran".
> 
> Thanks,
> Andrew Pinski
> 
> 


If I don't use -static, I get:

./a.out: error while loading shared libraries: libgfortran.so.0: cannot open
shared object file: No such file or directory

THanks,

Alex


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]