mysql database programing in c++
Posted by: amrutha chalasani
Date: November 02, 2011 11:23AM

I use linux and gnu compiler and i want to write a program to call database in mysql with c++ programming

while connecting mysql to server
in my program
I am getting errors like
ction `main':
data.cpp:(.text+0x12): undefined reference to `mysql_init'
data.cpp:(.text+0x8e): undefined reference to `mysql_real_connect'
data.cpp:(.text+0xa3): undefined reference to `mysql_error'
data.cpp:(.text+0xb1): undefined reference to `mysql_errno'
collect2: ld returned 1 exit status

what header files i should include to make mysql server connected with c++

can u please help

Options: ReplyQuote


Subject
Views
Written By
Posted
mysql database programing in c++
1281
November 02, 2011 11:23AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.