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
$ 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