Linking external libraries with nrnivmodl

Linking external libraries with nrnivmodl

Postby redarrow » Thu Feb 02, 2012 11:09 am

Hello,

is there a way of linking an external library (I have included code that uses the GNU scientific library in a MOD-file) when using nrnivmodl? I've been able to accomplish this by recompiling NEURON and defining appropriate environment variables (namely, CFLAGS and LDFLAGS), but it would be nice to do this without having to recompile the full source code.

Thank you in advance,
Daniele
redarrow
 
Posts: 2
Joined: Tue May 12, 2009 10:01 am

Re: Linking external libraries with nrnivmodl

Postby hines » Thu Feb 02, 2012 11:49 am

use
nrnivmodl -incflags "-I... -I.... -Ietcetera" -loadflags "-L... -lfoo"
to add the include flags during compiling and the ld options during linking.

nrnivmodl is a shell script.
hines
Site Admin
 
Posts: 980
Joined: Wed May 18, 2005 3:32 pm


Return to UNIX/Linux

Who is online

Users browsing this forum: No registered users and 1 guest