Hi
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
/src/win32/acconfig.h
before config.h...
Anyway here's the config:
for libswishe (release)
~~~~~~~~~~~~~~~~~~~
Preprocessor definitions:
HAVE_PCRE,HAVE_CONFIG_H,WIN32,NDEBUG,_MBCS,_LIB,HAVE_ZLIB
additional include directories:
.,
.\..\..\zlib,
.\..\..\expat\xmlparse,
.\..\..\expat\xmltok,
./../../libxml2/include,
./../../pcre/include
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
"HAVE_CONFIG_H" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "HAVE_ZLIB"
/Fp"tmp/libswishe_Release/libswishe.pch" /YX /Fo"tmp/libswishe_Release/"
/Fd"tmp/libswishe_Release/" /FD /c
And for swishe release:
~~~~~~~~~~~~~~~~~~~~~~~
Preprocessor definitions:
WIN32,NDEBUG,_CONSOLE,_MBCS,HAVE_PCRE,HAVE_CONFIG_H,HAVE_ZLIB
additional include directories:
.,
.\..\..\zlib,
.\..\..\expat\xmlparse,
.\..\..\expat\xmltok,
./../../libxml2/include,
./../../pcre/include
with linker options as follows:
libraries:
kernel32.lib
libswish-e.lib
./../../expat/xmltok/Release/xmltok.lib
./../../expat/xmlparse/Release/xmlparse.lib
./../../libxml2/win32/dsp/libxml2/libxml2.lib
./../../zlib/zlib.lib
./../../pcre/lib/libpcre.lib
or all linker options are as follows:
kernel32.lib libswish-e.lib ../../../expat/xmltok/Release/xmltok.lib
./../../expat/xmlparse/Release/xmlparse.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