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

problem building mysql-connector-c++-1.1.0 from source on windows (1 reply)

$
0
0
Hello all,

I'm trying to compile using visual studio linking against mysql-connector-c-6.0.2

I used CMake using the following command line

cmake -G "Visual Studio 9 2008" -DBOOST_ROOT:STRING="c:\Program Files (x86)\boost\boost_1_42" -DMYSQL_INCLUDE_DIR:PATH=c:\opensource\mysql-connector-c-6.0.2\include\" -DMYSQL_LIB:FILEPATH=c:\opensource\mysql-connector-c-6.0.2\libmysql\libmysql.lib


Cmake generates the project files successfully.

However, while compiling from MYSQLCPPCONN.sln i get a bunch of compiler errors

2>c:\opensource\mysql-connector-c++-1.1.0\driver\nativeapi\native_resultset_wrapper.h(29) : fatal error C1083: Cannot open include file: 'config.h': No such file or directory
2>mysql_native_statement_wrapper.cpp
2>.\nativeapi\mysql_native_statement_wrapper.cpp(25) : fatal error C1083: Cannot open include file: 'sqlstring.h': No such file or directory
2>mysql_native_connection_wrapper.cpp
2>.\nativeapi\mysql_native_connection_wrapper.cpp(25) : fatal error C1083: Cannot open include file: 'sqlstring.h': No such file or directory
2>mysql_native_driver_wrapper.cpp
2>c:\opensource\mysql-connector-c++-1.1.0\driver\nativeapi\mysql_private_iface.h(55) : fatal error C1083: Cannot open include file: 'my_global.h': No such file or directory
2>mysql_client_api.cpp
1>c:\pensource\mysql-connector-c++-1.1.0\driver\nativeapi/mysql_private_iface.h(55) : fatal error C1083: Cannot open include file: 'my_global.h': No such file or directory
1>mysql_native_resultset_wrapper.cpp
2>.\nativeapi\mysql_client_api.cpp(27) : fatal error C1083: Cannot open include file: 'cppconn/sqlstring.h': No such file or directory
1>c:\opensource\mysql-connector-c++-1.1.0\driver\nativeapi\native_resultset_wrapper.h(29) : fatal error C1083: Cannot open include file: 'config.h': No such file or directory
2>mysql_warning.cpp
1>mysql_native_statement_wrapper.cpp
1>.\nativeapi\mysql_native_statement_wrapper.cpp(25) : fatal error C1083: Cannot open include file: 'sqlstring.h': No such file or directory


and more.

I know that it means that the compiler is not looking in mysql-connector-c++-1.1.0\cppconn for the include files but i don't want to modify the generated project files directly.
Is there a parameter to cmake that I can use to rectify this error?

Thanks a lot.

-Piyush

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>