If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Re : fatal error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-11, 10:32
Antrikssh Antrikssh is offline
Registered User
 
Join Date: Oct 2011
Posts: 8
Question Re : fatal error

Hello Everyone,

This is Antrikssh Mishra, I am beginner of mysql database. I have created a project by using c++ and mysql when I was run it by using eclipse in Linux platform. But I found one fatal error that are as follow :-

*** Build of configuration Debug for project DB_Test ****

make all
Building file: ../source/DB_Connection.cpp
Invoking: GCC C++ Compiler
g++ -I"/home/User/workspace/DB_Test/header" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"source/DB_Connection.d" -MT"source/DB_Connection.d" -o"source/DB_Connection.o" "../source/DB_Connection.cpp"
../source/DB_Connection.cpp:52:30: fatal error: mysql_connection.h: No such file or directory
compilation terminated.
make: *** [source/DB_Connection.o] Error 1


In my Knowledge mysql_connection.h is present in the mysql_connector-c++ so I installed mysql-connector-c++-1.1.0-0.7.bzr895.fc15.i686 file according to configuration of system but still I fight with the problem.

Please guide me so that I solved it.

Thanks & Regards,

Antrikssh Mishra.
Reply With Quote
  #2 (permalink)  
Old 10-21-11, 06:52
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
Have a look at where the mysql_connection.h file exists and then add "-I /folder_where_mysql_connection.h_exists"

The issue is that it cannot find it in the default folders that it is searching. You need to need to add where to find that include file.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 10-21-11, 08:15
Antrikssh Antrikssh is offline
Registered User
 
Join Date: Oct 2011
Posts: 8
Exclamation Re : fatal error

Hello Sir,

First of all thank you for giving your precious time to me, Sir according to your suggestion I have include the required file and the error is also solved but another error occur that is

fatal error: cppconn/connection.h: No such file or directory
cppconn/resultset.h : No such file or directory
cppconn/statement.h : No such file or directory
cppconn/prepared_statement.h: No such file or directory
cppconn/resultset.h: No such file or directory
cppconn/resultset_metadata.h: No such file or directory
compilation terminated.
make: *** [source/DB_Connection.o] Error 1


I worked with eclipse before 3 month with out any problem but when I reinstall fedora 15 the problem is occurred. I have installed mysql-connector-c++-1.1.0-0.7.bzr895.fc15.i686.rpm to connect c++ with my sql but no effect of it.

please suggest me what I will do.


Thanks & Regards
Antrikssh Mishra
Reply With Quote
  #4 (permalink)  
Old 10-21-11, 11:44
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
It really does look like perhaps there is some configuration that you need to do in eclipse in order to include the folder containing the mysql client connector. Have you had a look at the following from eclipse?

Help - Eclipse SDK

You need to find where the include files, these may be located away from the default folders so you need to configure eclipse to include these when compiling.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #5 (permalink)  
Old 10-24-11, 10:14
Antrikssh Antrikssh is offline
Registered User
 
Join Date: Oct 2011
Posts: 8
Lightbulb

Hello,

Thank you sir for your such a helpful advice, Sir If you have more suggestion for me then please give for my bright future.


Regards,

Antrikssh Mishra
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On