The .mod file compiles and when running main.hoc the mechanism does not get loaded.
In the .mod file the C function "random()" and "srandom()" are used with out any explicit context. When I was compiling mod files for Example 4, it compiles successfully but with some warning in gcc outputs:
Then I double clicked main.hoc, seems some reference does not get defined. it shows:gcc -mno-cygwin -I/cygdrive/h/nrn58/src/scopmath -I/cygdrive/h/nrn58/src/nrnoc -I/cygdrive/h/nrn58/src/oc -I/cygdrive/h/nrn58/lib -I/cygdrive/h/nrn58/mingw -c mod_func.c
nocmodl DGA_Destexhe
Translating DGA_Destexhe.mod into DGA_Destexhe.c
Notice: This mechanism cannot be used with CVODE
Warning: random undefined. (declared within VERBATIM?)
Warning: srandom undefined. (declared within VERBATIM?)
VECTORIZED
gcc -mno-cygwin -I/cygdrive/h/nrn58/src/scopmath -I/cygdrive/h/nrn58/src/nrnoc -I/cygdrive/h/nrn58/src/oc -I/cygdrive/h/nrn58/lib -I/cygdrive/h/nrn58/mingw -c DGA_Destexhe.c
rm DGA_Destexhe.c
ld -d -S -x -r -o nrnmech.dll mod_func.o DGA_Destexhe.o minimalExpSyn_Rudolph.o -L/cygdrive/h/nrn58/lib -lscpmt
nrnmech.dll was built successfully.
Is it due to a non complete build evironment under Win XP? What else doloading membrane mechanisms from nrnmech.dll
Undefined symbol _random referenced from nrnmech.dll
Undefined symbol _srandom referenced from nrnmech.dll
Undefined symbol _exit referenced from nrnmech.dll
...
...
nrniv: DGA is not a template
in insertSynapticProperties.hoc near line 26
PRE[0] sExpSynGen = new DGA(0.5)
^
xopen("insertSynapticProperties.hoc" )
I need to install?
Thanks a lot for your time and patience!