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:48 PM, apaz@purdue.edu wrote:
> > 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
> 
> That means you need to set up LD_LIBRARY_PATH to include the directory 
> you
> installed gfortran into. (well the lib subdirectory).
> 
> gfortran.org should not have recommended -static as it will not work
> with C++ code if you do any work between fortran and C++.
> 
> Thanks,
> Andrew Pinski
> 
> 


I do:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/apaz/irun/lib

alias gfc="/home/apaz/irun/bin/gfortran -Wall"

and I get:

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

COuld you please tell me, where is my problem?

Thanks,
Alex



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