@User I am trying to install ngspice , but make is throwing below error :
CC alloc.lo
CC getopt_long_bsd.lo
CC dup2.lo
CC dstring.lo
gcc: error: unrecognized command line option ‘-mwindows’
gcc: error: unrecognized command line option ‘-mwindows’
make[2]: * [Makefile466 dup2.lo] Error 1
make[2]: * Waiting for unfinished jobs....
gcc: error: unrecognized command line option ‘-mwindows’
gcc: error: unrecognized command line option ‘-mwindows’
make[2]: * [Makefile466 alloc.lo] Error 1
make[2]: * [Makefile466 getopt_long_bsd.lo] Error 1
make[2]: * [Makefile466 dstring.lo] Error 1
I tried to google it , and installed the recommended mingw-w64 package. But still issue exists. -- Any idea ?? Thanks
a
Arman Avetisyan
05/11/2022, 7:49 AM
what platform? reproduction steps?
s
Stefan Schippers
05/11/2022, 8:01 AM
@User it seems you are building ngspice for windows. I don't have any windows so i can not help much. Also try to see ngspice support.
If you are cross-compiling for windows from a linux machine you need to specify a different compiler to make, like
CC=...... make
. The mingw compiler could be something like
i686-w64-mingw32-gcc
, but i am definitely not the right person to ask for.
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.