Re: [gnome-db] A little help with MinGW

Johannes Schmid <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <1266000476.2755.4.camel@Obelix>
Hi!

> 1)  pexports  libmysql.dll >mydef.def
> 2) dlltool --input-def mydef.def --dllname libmySQL.dll --output-lib
> libmysqlclient.a  -K
> 
As far as I know this is the correct way. As MySQL is open source there
should be some official def file available (gcc should create one). You
can probably ask the MySQL devs if they could include it in there
distribution. It's possible though that the use the MS oder Intel
compiler for the binaries.

Just for those not too much into MinGW development: The .a file is
needed to tell ld/gcc what it should link to. Normally these files are
called .dll.a to underline that they refer to a dll file. The dll will
be linked in dynamically at runtime of course. The .dll.a file contains
the symbols of the dll that are normally stripped and as such you need
the .def file to restore them. libmysql.dll doesn't seem to be stripped
and pexports can detect the symbols.

Regards,
Johannes

_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkt1olkACgkQAvZZn2XJ+bO3MwCgrghxMDWWrXf/OXhKuq/NBzq/
5RsAnRKqZJzCi4wdkN9lQyeisWUnM/2L
=pw+P
-----END PGP SIGNATURE-----
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.