I'm encountering an error while trying to compile ngspice, and I'm seeking assistance in resolving it. When compiling the bsimbulk module, I'm encountering the following error:
In file included from bsimbulk.c:8:
bsimbulkdefs.h:12976:27: error: expected identifier before numeric constant
12976 | #define bsimbulknumStates 0
| ^
bsimbulkdefs.h:13252:5: note: in expansion of macro ‘bsimbulknumStates’
13252 | bsimbulknumStates
| ^~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:495: bsimbulk.lo] Error 1
It seems to be related to a macro definition in bsimbulkdefs.h, but I'm unsure about how to resolve it. Can someone please provide guidance on how to troubleshoot and fix this issue?
Any help would be greatly appreciated.
Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone,
I'm encountering an error while trying to compile ngspice, and I'm seeking assistance in resolving it. When compiling the
bsimbulk
module, I'm encountering the following error:In file included from bsimbulk.c:8:
bsimbulkdefs.h:12976:27: error: expected identifier before numeric constant
12976 | #define bsimbulknumStates 0
| ^
bsimbulkdefs.h:13252:5: note: in expansion of macro ‘bsimbulknumStates’
13252 | bsimbulknumStates
| ^~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:495: bsimbulk.lo] Error 1
It seems to be related to a macro definition in
bsimbulkdefs.h
, but I'm unsure about how to resolve it. Can someone please provide guidance on how to troubleshoot and fix this issue?Any help would be greatly appreciated.
Thank you!
Which OS, compiler, environment and version?
Which bsimbulk source and version?
Which ngspice source? OSDI or ADMS?