|
|
Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » Compiling issue with MySQL and GCC
|
|
|
|
|
|
|
Re: Compiling issue with MySQL and GCC [message #46340 is a reply to message #46338] |
Sat, 23 April 2016 18:32   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
BioBytes wrote on Sat, 23 April 2016 09:07
I tried to replace with -lmysql aand I got the following error:
Do not put "-lmysql" directly. What you need is just "mysql".
Hope this helps.
Regards,
Novo
|
|
|
Re: Compiling issue with MySQL and GCC [message #46341 is a reply to message #46340] |
Sun, 24 April 2016 21:11  |
 |
BioBytes
Messages: 308 Registered: October 2008 Location: France
|
Senior Member |
|
|
Thanks Novo for advice in linkage parameter.
I got better results with a libmysql.a found on Web and dated April 15th 2005 which size is 108Ko. However I still got few errors. See below
(): Linking has failed
(): D:/Installations/Compilateurs/upp/out/MyApps-bazaar/MySql/MINGW.Debug.Debug_Full.Gui.Mt.Mysqldll\MySql.o: In function `s__s49_fn':
D:/Installations/Compilateurs/upp/uppsrc/MySql/MySql.cpp (50): undefined reference to `mysql_server_init@12'
(): D:/Installations/Compilateurs/upp/out/MyApps-bazaar/MySql/MINGW.Debug.Debug_Full.Gui.Mt.Mysqldll\MySql.o: In function `s__s53_fn':
D:/Installations/Compilateurs/upp/uppsrc/MySql/MySql.cpp (54): undefined reference to `mysql_server_end@0'
(): D:/Installations/Compilateurs/upp/out/MyApps-bazaar/MySql/MINGW.Debug.Debug_Full.Gui.Mt.Mysqldll\MySql.o: In function `ZN3Upp12MySqlSession9DoConnectEv':
D:/Installations/Compilateurs/upp/uppsrc/MySql/MySql.cpp (66): undefined reference to `mysql_set_character_set@8'
(): collect2.exe: error: ld returned 1 exit status
Do you any other idea ? I begin to be lost now
Regards
Biobytes
[Updated on: Mon, 25 April 2016 10:14] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:44:54 CEST 2025
Total time taken to generate the page: 0.01222 seconds
|
|
|