Skip to main content.
home | support | download

Back to List Archive

Re: Compiling on W2K - Mingw

From: Greg Ford <greg(at)>
Date: Tue Apr 22 2003 - 09:56:49 GMT

I didn't think I could help, but I have got swish-e compiling under VC++
so I've included the compiler/linker settings that work for me.
I compile libswish-e multi-threaded as I run it on a static CD-ROM database,
otherwise it is a fairly standard version 2.3.4.

I think you need to be careful to ensure the compiler finds
before config.h...

Anyway here's the config:

for libswishe (release)
Preprocessor definitions:

additional include directories:


or all compiler options:

/nologo /MT /W3 /GX /O2 /I "..\..\..\zlib" /I "." /I
"..\..\..\expat\xmlparse" /I "..\..\..\expat\xmltok" /I
"../../../libxml2/include" /I "../../../pcre/include" /D "HAVE_PCRE" /D
/Fp"tmp/libswishe_Release/libswishe.pch" /YX /Fo"tmp/libswishe_Release/"
/Fd"tmp/libswishe_Release/" /FD /c

And for swishe release:
Preprocessor definitions:

additional include directories:


with linker options as follows:



or all linker options are as follows:
kernel32.lib libswish-e.lib ../../../expat/xmltok/Release/xmltok.lib
./../../libxml2/win32/dsp/libxml2/libxml2.lib ../../../zlib/zlib.lib
./../../pcre/lib/libpcre.lib /nologo /subsystem:console /incremental:no
/pdb:"tmp/swishe_Release/swish-e.pdb" /machine:I386 /out:"swish-e.exe"

Greg Ford
Received on Tue Apr 22 09:57:17 2003