469,571 Members | 1,533 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,571 developers. It's quick & easy.

Troubles to compile the examples with C and C++ API


Mysql version: 3.23.49
Solaris version: 2.7
gcc compiler version: 2.95.2
Python : 2.2.2

I'm evaluating the C and C++ API to decide which one to bye but I have
many troubles.

I have some problemes to compile my examples and the one provided with
the mysql C++ API version : mysql++-1.7.9.

With C API I'm compile with the command:

gcc -I/usr/local/mysql/include -L/usr/local/mysql/lib -lmysqlclient


Undefined first referenced
symbol in file
mysql_real_connect /var/tmp/ccb6arIB.o
mysql_init /var/tmp/ccb6arIB.o
ld: fatal: Symbol referencing errors. No output written to a.out

Any Idea?

For the C++ API I have troubles with configure script and problems
with the Makefile because. I did the necessary updates and I was able
to compile the API. But impossible to compile the examples, I have
undefined symbols like the one for the C example.


Before going further in my investigation, I want to know which one of
the API (c or C++) is the best if I want to write a Python API to
access Mysql Database.

If It's MysqlC++ API then I will have to solve all the problems I have
actually before bying the licence for our commercial application.

Thanks for your future advice

Jul 19 '05 #1
0 1776

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by justin.adam.miller | last post: by
1 post views Thread by sam++ | last post: by
10 posts views Thread by Bart Goeman | last post: by
2 posts views Thread by d2d | last post: by
10 posts views Thread by Chris LaJoie | last post: by
2 posts views Thread by Joe324 | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.