I wasn't sure whether to post this here or under the NMODL sub-forum, but finally posted here because it seems to be a Windows-specific issue.
With the last Neuron version (7.6.6), I'm getting the following error when trying to compile a .mod file that contains a UNITS block:
Code: Select all
c:\nrn/mingw/usr/bin/sh c:\nrn/lib/mknrndll.sh /cygdrive/c\nrn
x86_64-w64-mingw32-gcc -DDLL_EXPORT -DPIC -I/cygdrive/c\nrn/src/scopmath -I/cygdrive/c\nrn/src/nrnoc -I/cygdrive/c\nrn/src/oc -c mod_func.c
nocmodl HHst
Translating HHst.mod into HHst.c
Set a MODLUNIT environment variable path to the units table file
Cant open units table in either of:
/cygdrive/C/nrn/lib/nrnunits.lib
/home/hines/neuron/nrnwinobj/share/nrn/lib/nrnunits.lib../../share/lib/nrnunits.lib at line 13 in file HHst.mod
UNITS {
^
make: *** [/cygdrive/c\nrn/lib/mknrndll.mak:25: HHst.c] Error 1
There was an error in the process of creating nrnmech.dll
Press Return key to exit
- This happens at least in two different computers, running Windows and Neuron 7.6.6. I haven't tried now with older versions (yet), but last year this didn't happen.
- .mod files that do not contain a UNITS block are compiled without problems.
- The .mod files that I can't compile are successfully compiled under OS X.
- The /cygdrive/C/nrn/lib/nrnunits.lib file is there!! I checked under the Neuron's own Bash terminal. For this reason, I didn't try to set the environment variable either. (why should I, if the program seems already to be looking in the right place?)
- EDIT: I did try with or
Code: Select all
set MODLUNIT=/cygdrive/c/nrn/lib/
before running mknrndll (within the same Bash terminal session) but it didn't work either.Code: Select all
set MODLUNIT=/cygdrive/c/nrn/lib/nrnunits.lib