Linking external libraries with nrnivmodl

Post Reply
redarrow
Posts: 2
Joined: Tue May 12, 2009 10:01 am

Linking external libraries with nrnivmodl

Post by redarrow »

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
hines
Site Admin
Posts: 1600
Joined: Wed May 18, 2005 3:32 pm

Re: Linking external libraries with nrnivmodl

Post by hines »

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.
Post Reply