Game Development Community

Mysql++ questions

by Andy Rollins · in Torque Game Engine · 05/26/2007 (12:18 pm) · 2 replies

Hi, I'm trying to get the Event Driven Database resource up and running using the MySql++ api, which is licensed under the GNU LGPL license. Reading though that license shows that we are not allowed to build the mysql++ api into TGE and then share/sell it without providing full source for the library and object files/source code for TGE (which would invalidate our TGE license).

So in order to use it on windows we must put it in a DLL and must switch the torque project to link to the runtime libraries as Multi-threaded DLL (/MD) instead of it's default Multi-threaded (/MT)...

1. Can anyone verify if that's right or if I'm talking rubbish?
2. What's the likely performance impact on torque linking dynamically rather static?
3. Lastly I know nothing about linux/mac, as they don't have DLL's how would they use such a seperate library?

Thanks in advance, Andy

#1
05/26/2007 (5:34 pm)
(1) I'm not a lawyer, but my understanding is that with the LGPL, if you link it in as a dynamic lib you only need to release the source to the dynamic lib, not your whole project.

(2) Little-to-no impact - you won't notice any difference.

(3) Linux has shared libraries [.so] and the Mac has dynamic libraries [.dylib]. They all work on the same principles.
#2
05/26/2007 (6:27 pm)
Thanks Andy that will help a lot, superb community here on GG