Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

Compiling VC++ with MySQL Connector/C++ causing error (variant.hpp missing) (1 reply)

$
0
0
I'm compiling the first example of the MySql

http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-complete-example-1.html

I'm following this tutorial

http://blog.ulf-wendel.de/?p=215

The error its showing is

1>------ Build started: Project: teste_my_sql, Configuration: Release Win32 ------
1>Compiling...
1>teste_my_sql.cpp
1>E:\Program Files\MySQL\MySQL Connector C++ 1.1.0\include\cppconn/connection.h(29) : fatal error C1083: Cannot open include file: 'boost/variant.hpp': No such file or directory
1>Build log was saved at "file://e:\Users\User\Documents\Projetos\Testes\teste_my_sql\teste_my_sql\Release\BuildLog.htm"
1>teste_my_sql - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I' looked for the connection.h and its line 29 pointed to it:

"#include <boost/variant.hpp>"

I tried a few searchs and found no boost file nor variant nor *.hpp
How can I solve this problem? There is any program that I need to reinstall or download?

Viewing all articles
Browse latest Browse all 527

Trending Articles