Re: BSIM plugins with MINGW

al davis <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel
Message-ID <[email protected]>
On Wednesday 22 July 2009, al davis wrote:
> It compiles with mingw as a cross-compiler.  I don't have a
> way to test beyond that.

It works on wine!

To cross compile ..

(Use the old build system.)
./configure.old
make
(builds a native version, you can stop it after it builds 
modelgen)
cd src
make mingw
(builds the windows version)
(it's "gnucap.exe" in MSW)

untar a models package ..
cd models---------
rm Make2
ln -s Make2.mingw Make2
make
(builds the MS version of the plugins)
(some don't work .. I know)
(the *.dll files are plugins.  load as with unix)


The differences compared to  posix version ...
1. extension ".dll" instead of ".so"
2. Unresolved symbols in plugins are reported at compile time 
for the MS version, vs at load time for the posix version.
3. You need to fix the "Make2" symlink. (or copy)
4. To cross compile, you need to make the "gnucap-modelgen" 
symlink. (or copy)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.