← Back to team overview

yade-dev team mailing list archive

Re: Fortran libraries

 

Thanks Vaclav for such a quick reply.

Could you explain to me more clearly.  I am quite clueless.
         * f77 -c   testF.f 
    * g++ -c testC.cpp 
    * g++ -o test testF.o testC.o -lg2c 

>From the above example, testF.f is the fortran code i want to link, and g2c is the corresponding library    Could you explain an example on how to do it to me please in SConstruct?  



Yours,

Boon


> From: eudoxos@xxxxxxxx
> To: yade-dev@xxxxxxxxxxxxxxxxxxx
> Date: Thu, 25 Mar 2010 10:17:56 +0100
> Subject: Re: [Yade-dev] Fortran libraries
> 
> > Do you know if it is possible to link to a library written in Fortran
> > 95?  And how to do it?  I read an online tutorial and it looks like
> > this:
> > 
> >       * f77 -c testF.f 
> >       * g++ -c testC.cpp 
> >       * g++ -o test testF.o testC.o -lg2c 
> > 
> > The only thing I only know how to do is to add it in the CPPPATH in
> > scons.profile.
> 
> You have to add g2c to LIBS for the command that will compile your code.
> CPPPATH is preprocessor path, that has nothing to do with that.
> 
> v
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help   : https://help.launchpad.net/ListHelp
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969

Follow ups

References