← Back to team overview

yade-dev team mailing list archive

Re: Linking to NAG C Library

 

Thanks, Vaclav for helping through this.

I'll read the man page of scons, meanwhile waiting for the trial license for NAG C library.


Yours,

Boon

> From: eudoxos@xxxxxxxx
> To: yade-dev@xxxxxxxxxxxxxxxxxxx
> Date: Mon, 29 Mar 2010 10:03:53 +0200
> Subject: Re: [Yade-dev] Linking to NAG C Library
> 
> > Assuming that libnagc.a or libnagc.so has been installed in a
> > directory in the search path of the linker, such as /usr/lib, and that
> > the NAG include files have been moved to /usr/include, then you may
> > link to the NAG C Library in the following manner:
> > 
> > gcc driver.c -lnagc -lpthread -lm
> > 
> > where driver.c is your application program.
> > 
> > How do I do it for YADE?  I am totally clueless.  Can someone teach me
> > please?
> 
> Read man scons, read my previous post about putting your plugin to
> extra/, use LIBS=env['LIBS']+['nagc']. We link everything to -lpthread
> and -lm automatically, you don't need to specify those IIRC (but it will
> not hurt if you do).
> 
> Cheers, 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: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969

References