Skip to main content


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 19:20 Go to next message
Damian Giebas is currently offline Damian GiebasFriend
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 13:19 Go to previous message
Paul Bußmann is currently offline Paul BußmannFriend
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: Fri Apr 26 21:27:56 GMT 2024

Powered by FUDForum. Page generated in 0.02953 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top