[sword-devel] compiling with gcc on windows

Daniel Glassey sword-devel@crosswire.org
Fri, 2 Nov 2001 11:40:28 -0000

On 1 Nov 2001 at 11:04, Chris Little sent forth the message:

> > Attached is a small patch to Makefile, Makefile.cfg, 
> > Makefile.post CVS 17:30 GMT that 
> > allows you compile libsword.dll with the mingw gcc compiler 
> > on windoze. (www.mingw.org) tested on windows though ought to 
> > work with the mingw cross compiler as well. please try it 
> > out if you have it.
> This looks cool, but does it have any neat advantages aside from
> supporting another compiler? 

It ought to allow you to compile a native windows dll on linux or anything else you can build 
the cross compiler on.

> Will a MinGW compiled DLL be useable by
> MSVC?  Our MSVC compiled DLL doesn't work too well, I think because of
> the STL stuff.  And a Makefile built DLL would be a lot easier to
> maintain than one built with MSVC project files.  So please tell me this
> DLL can be used by MSVC. :) This is determined by the format of the .lib
> file that should be generated in parallel with the .dll.

The lib formats aren't compatible but it might be possible to create a msvc lib file from the 

download http://www.geocities.com/danglassey/libsword.tmp and rename it to libsword.dll
download http://www.geocities.com/danglassey/libsword.txt and rename it to libsword.def

lib /out:libsword.lib /def:libsword.def /machine:ix86

dunno if this works with c++ dlls though.


Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com