Even if Windows XP is outdated and no longer supported, there is the request to have an executable ready to run on this OS.
Compiling with Visual Studio 2015/2017 was not successful. Therefore I have been using MINGW to create the executables (ngspice.exe and the shared ngspice dll) on my computer with 64bit Windows 7. Tests were done on an old Windows XP machine.
The enclosed compiler is 64 bit and does not help here. Unfortunately even the associated 32-bit compiler available with msys2 will not do.
So in addition I have installed TDM MINGW from http://tdm-gcc.tdragon.net/index.php/, using the TDM64 bundle to C:\TDM-GCC-510.
Download ngspice from https://sourceforge.net/projects/ngspice/files/ng-spice-rework/27/ngspice-27.tar.gz/download and expand it, e.g. to D:\AllSpices.
Now open the msys2 window again, cd to your path where ngspice resides, e.g. by $ cd D:\AllSpices\ngspice
Next add the command $ export PATH=/c/TDM-GCC-510/bin:$PATH
to temporarily (for this msys2 session only) set the path to the TDM gcc. A $ gcc --version
should you now give you a gcc.exe (tdm64-1) 5.1.0
Compilation may now be started by calling $ ./compile_min.sh
For obtaining ngspice.dll, please see the hints given in compile_min.sh.
Even if Windows XP is outdated and no longer supported, there is the request to have an executable ready to run on this OS.
Compiling with Visual Studio 2015/2017 was not successful. Therefore I have been using MINGW to create the executables (ngspice.exe and the shared ngspice dll) on my computer with 64bit Windows 7. Tests were done on an old Windows XP machine.
This is the procedure:
Download and install msys2 and MINGW according to my tip:
https://sourceforge.net/p/ngspice/discussion/ngspice-tips/thread/d996c907/
The enclosed compiler is 64 bit and does not help here. Unfortunately even the associated 32-bit compiler available with msys2 will not do.
So in addition I have installed TDM MINGW from http://tdm-gcc.tdragon.net/index.php/, using the TDM64 bundle to C:\TDM-GCC-510.
Download ngspice from https://sourceforge.net/projects/ngspice/files/ng-spice-rework/27/ngspice-27.tar.gz/download and expand it, e.g. to D:\AllSpices.
Now open the msys2 window again, cd to your path where ngspice resides, e.g. by
$ cd D:\AllSpices\ngspice
Next add the command
$ export PATH=/c/TDM-GCC-510/bin:$PATH
to temporarily (for this msys2 session only) set the path to the TDM gcc. A
$ gcc --version
should you now give you a
gcc.exe (tdm64-1) 5.1.0
Compilation may now be started by calling
$ ./compile_min.sh
For obtaining ngspice.dll, please see the hints given in compile_min.sh.
ngspice and its shared library, made with the procedure described above can be found at
http://ngspice.sourceforge.net/experimental/ngspice-27_xp.7z
Holger