yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03717
Re: 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
Follow ups
References