MySQL Forums
Forum List  »  Connector/C++

Compile Error
Posted by: Joseph Hesse
Date: June 19, 2013 07:35AM

I get the following error when I try to compile a connector c++ program.

$ g++ -o test test.cpp -L/usr/include/mysql -lmysqlclient -I/usr/include/mysql
In file included from /usr/include/mysql_connection.h:30:0,
from test.cpp:34:
/usr/include/cppconn/connection.h:31:29: fatal error: boost/variant.hpp: No such file or directory
compilation terminated.

I am using:

Fedora 18, 64 bit, MySQL is installed and works fine.

The program I am trying to compile is:
http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-complete-example-1.html

MySQL connector is installed from a Fedora repository - see below.
# yum list | grep mysql-connector-c++.x86_64
mysql-connector-c++.x86_64 1.1.2-1.fc18 @updates

Any help would be appreciated.

Thank you,
Joe

Options: ReplyQuote


Subject
Views
Written By
Posted
Compile Error
3817
June 19, 2013 07:35AM


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.