Hi,

Thanks for that link.. after a bit of fiddling I have been able to compile the 
MySQL dll.

The issue is MySQL is compiled using MSVC which meant that the lib didn’t work 
with MinGW but using reimp and dlltool I managed to get it to compile.

Robin

-----Original Message-----
From: Mateusz Loskot [mailto:[email protected]] 
Sent: 09 February 2013 17:26
To: General-purpose list for SOCI users.
Subject: Re: [soci-users] MySQL Build fails

On 9 February 2013 16:25, Robin Moss <[email protected]> wrote:
>
> I’ve been trying for several hours to get SOCI with MySQL built on my 
> windows machine (Win 7) with MinGW.
>
> Every attempt I have made fails when it attempts to make the DLL.
>
> CMake command:
>
> cmake -G "MinGW Makefiles" -DWITH_MYSQL=ON 
> -DMYSQL_INCLUDE_DIR="E:\MySQL\include"
> -DMYSQL_LIBRARY="E:\MySQL\lib\mysqlclient.lib" -DWITH_BOOST=OFF ..
>
>
>
> Ming32-make Stack Track:
>
> Linking CXX shared library ..\..\bin\libsoci_mysql_3_1.dll
>
> CMakeFiles\soci_mysql.dir/objects.a(common.cpp.obj):common.cpp:(.text+0x29d):
> undefined reference to `mysql_real_escape_string@16'
> [...]

Robin,

I regret, I'm not able to help really about MinGW as I've never used it myself.
Hopefully, someone here will be able to help you.

Perhaps it's related to this:

http://www.qtcentre.org/threads/21420-MySQL-driver-Very-strange-problem-PLEASE-HELP-ME-Thanks

If you confirm it's a bug, please submit an issue to 
https://github.com/SOCI/soci/issues

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 and get the 
hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to