473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

Hi,

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
arith.c

Errors:

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.

Question:

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

Kamel
Jul 19 '05 #1
0 1934

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: lmckaha | last post by:
Hi, 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.
3
by: justin.adam.miller | last post by:
I've been trying to use the sfinae principle in some code and have been getting many compiler errors. So I decided to try a very simplified version to see if I had the idea correct. Here's the...
1
by: sam++ | last post by:
Hi, I cd into examples/DLL/ and type "make", it failed to compile the example. The error is: # make make - -f DLL_Today.bor all make: don't know how to make all. Stop *** Error code 2 ...
10
by: Bart Goeman | last post by:
Hi, I have a question about how to put redundant information in data structures, initialized at compile time. This is often necessary for performance reasons and can't be done at run time (data...
2
by: d2d | last post by:
How are you doing there folks? I just have this newbie question about how to compile an NUnit test file from command line using "csc.exe" I installed NUnit 2.1 using *.msi file. I was...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
10
by: Victor | last post by:
Hello there, I have a module in VB.NET (ASP.NET) and on top I declare the SqlConnection and the SqlDataAdapter. Like: Module AccessDB Dim sqlCmd As New SqlCommand Dim conAanvraag As New
2
by: Bob [BVP] | last post by:
I have an .cs file I need to compile with csc.exe for codebehind access (no VS.NET). Trouble is that my oledb connection needs to use a unc type path.. when I use the unc path in conn I get...
2
by: Joe324 | last post by:
Hello, I'm writing a program that will (eventually) read in a list of names from a file and store them in a linked list. I have the basics of the program done and it compiles with no errors, but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.