I just tried building with Mingw/MSYS. The check for Mingw still
doesn't work, which means SWORD's internal regex isn't compiled.

./lib/.libs/libsword.a(swmodule.o):swmodule.cpp:(.text+0x2267): undefined refe
nce to `regcomp'
./lib/.libs/libsword.a(swmodule.o):swmodule.cpp:(.text+0x2b11): undefined refe
nce to `regexec'
./lib/.libs/libsword.a(swmodule.o):swmodule.cpp:(.text+0x2c7c): undefined refe
nce to `regfree'

Of course, I personally don't want SWORD's regex anyway, but still it
should by default compile without errors.

Also, to actually build a dll with Mingw when you have built with
clucene support, it is necessary to pass the flag -no-undefined in
$LIBS. It would be nice if that were done automatically so someone new
at this could have everything "just work". In newer versions of gcc
this won't be necessary, but it still is in the versions most commonly
available.

So, the desired behavior would be, if using mingw with
--enable-shared, LIBS="-no-undefined".

Matthew

_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to