Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse and Connector\C(Problem with linker)
icon9.gif  Eclipse and Connector\C [message #987144] Fri, 23 November 2012 14:20 Go to next message
Damian Giebas is currently offline Damian Giebas
Messages: 1
Registered: November 2012
Junior Member
Hi.

I sometimes programming in C++ using Eclipse. Today i have a litle problem, becouse i don't know how i could linked mysql library for c/c++. In CodeBlocks I use

mysql_config --libs
mysql_config --cflags

and all working very well but in Eclipse i can't find place for this command. Can you tell me where i can use this command?

Re: Eclipse and Connector\C [message #987206 is a reply to message #987144] Sat, 24 November 2012 08:19 Go to previous message
Paul Bußmann is currently offline Paul Bußmann
Messages: 17
Registered: October 2012
Junior Member
Hi Damian,

I guess you want to link against the MySQL Client Library. (libmysqlclient.so)
You can add it at the tool settings: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Freference%2Fcdt_u_prop_general_pns_lib.htm

When Eclipse invokes the linker, please check that "-lmysqlclient" is one of the parameters.
If it complains that it does not find the lib, you have to give the correct path at the "Library paths" setting.

Best regards,
Paul
Previous Topic:Export project with building settings
Next Topic:CMake
Goto Forum:
  


Current Time: Thu Apr 17 17:29:26 EDT 2014

Powered by FUDForum. Page generated in 0.13846 seconds