Results 1 to 2 of 2
hello,
i am using fedora 7 ,i want to connect c++ program with mysql, i found mysql++ library for connecting c++ with mysql.when i used mysql++ rpm for installing and ...
- 11-17-2008 #1Just Joined!
- Join Date
- May 2008
- Location
- india
- Posts
- 23
connecting c++ with mysql
hello,
i am using fedora 7 ,i want to connect c++ program with mysql, i found mysql++ library for connecting c++ with mysql.when i used mysql++ rpm for installing and typed at shell prompt ./configure,then the error says unable to find mysql client library,can any one guide how to do the connection via a c++ program.
regards puneet
- 11-17-2008 #2
What it is saying is that you dont have the libraries installed to be able to compile the code. When compiling code from source, you need the libraries to support it, where on windows when you download binaries, they allready completed that step (it SOUNDS better, but having the ability to compile your code is the whole point to gnu/linux software.)
as root, run
yum install mysql-devel mysql++ mysql++-devel
the first part (mysql-devel) is the library the file is asking for (-devel packages are the sourcecode libraries to build apps that depend on them) the second and third are there because if your package manager has the stuff allready, you shouldn't need to compile it yourself (the exception is for customization, but you will likely need more of an understanding of how code compilation works before you get into that)New to the internet, technical forums, or the hacker / open source community??
Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html
RHCE for RHEL version 5
RHCT for RHEL version 4


Reply With Quote