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

MySQL connector c++: source build problem; error C2371 (1.0.5, VS10) (1 reply)

$
0
0
Hi there!

I've been trying to build mysql connector c++ 1.0.5 source for few days.
I had used cmake and generated a solutnion but when i ty to build it, i get error C2371.

i tryed:
>cmake -G "Visual Studio 10"
and building by VS 10 IDE

and

>cmake -G "NMake Makefiles"
and building by >nmake

with same result.


Error list:

Error 1 error C2371: 'int8_t' : redefinition; different basic types D:\ProgramLib\MySQLConnector\cppconn\config.h 60 1 mysqlcppconn-static
Error 2 error C2371: 'int8_t' : redefinition; different basic types D:\ProgramLib\MySQLConnector\cppconn\config.h 60 1 mysqlcppconn
Error 3 error C2371: 'int8_t' : redefinition; different basic types d:\programlib\mysqlconnector\cppconn\config.h 60 1 mysqlcppconn-static
Error 4 error C2371: 'int8_t' : redefinition; different basic types d:\programlib\mysqlconnector\cppconn\config.h 60 1 mysqlcppconn
Error 5 error C2371: 'int8_t' : redefinition; different basic types D:\ProgramLib\MySQLConnector\cppconn\config.h 60 1 mysqlcppconn
Error 6 error C2371: 'int8_t' : redefinition; different basic types D:\ProgramLib\MySQLConnector\cppconn\config.h 60 1 mysqlcppconn-static
Error 7 error C2371: 'int8_t' : redefinition; different basic types d:\programlib\mysqlconnector\cppconn\config.h 60 1 mysqlcppconn
Error 8 error C2371: 'int8_t' : redefinition; different basic types d:\programlib\mysqlconnector\cppconn\config.h 60 1 mysqlcppconn-static
Error 10 error C2371: 'int8_t' : redefinition; different basic types D:\ProgramLib\MySQLConnector\cppconn\config.h 60 1 mysqlcppconn
Error 11 error C2371: 'int8_t' : redefinition; different basic types d:\programlib\mysqlconnector\cppconn\config.h 60 1 mysqlcppconn
Error 12 error C2371: 'int8_t' : redefinition; different basic types d:\programlib\mysqlconnector\cppconn\config.h 60 1 mysqlcppconn
Error 13 error C2371: 'int8_t' : redefinition; different basic types D:\ProgramLib\MySQLConnector\cppconn\config.h 60 1 mysqlcppconn-static
[...]


when i commented the error line (as someone suggested) i get:

Error 4 error C2440: 'initializing' : cannot convert from 'int' to 'char *' D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 mysqlcppconn
Error 5 error C2439: 'std::_Pair_base<_Ty1,_Ty2>::first' : member could not be initialized D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 mysqlcppconn
Error 7 error C2440: 'initializing' : cannot convert from 'int' to 'char *' D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 mysqlcppconn-static
Error 8 error C2439: 'std::_Pair_base<_Ty1,_Ty2>::first' : member could not be initialized D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163 1 mysqlcppconn-static
Error 20 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\LINK static_test
Error 22 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\examples\LINK statement
Error 24 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\examples\LINK resultset_types
Error 26 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\examples\LINK resultset_meta
Error 27 error LNK1181: cannot open input file '..\..\..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\unit\classes\LINK test_resultset
Error 28 error LNK1181: cannot open input file '..\..\..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\unit\classes\LINK test_preparedstatement
Error 29 error LNK1181: cannot open input file '..\..\..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\unit\classes\LINK test_parametermetadata
Error 30 error LNK1181: cannot open input file '..\..\..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\unit\classes\LINK test_resultsetmetadata
Error 31 error LNK1181: cannot open input file '..\..\..\driver\Release\mysqlcppconn-static.lib' D:\ProgramLib\MySQLConnector\test\unit\classes\LINK test_art_resultset
Error 33 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\examples\LINK resultset_binary
Error 35 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\examples\LINK prepared_statement
Error 36 error LNK1181: cannot open input file '..\..\..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\unit\classes\LINK test_statement
Error 37 error LNK1181: cannot open input file '..\..\..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\unit\classes\LINK test_connection
Error 40 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\examples\LINK exceptions
Error 41 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\examples\LINK resultset
Error 45 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\LINK driver_test
Error 46 error LNK1181: cannot open input file '..\..\..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\unit\example\LINK example
Error 49 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\examples\LINK connect
Error 50 error LNK1181: cannot open input file '..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\examples\LINK connection_meta_schemaobj
Error 55 error LNK1181: cannot open input file '..\..\..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\unit\template_bug_group\LINK bug456
Error 56 error LNK1181: cannot open input file '..\..\..\driver\Release\mysqlcppconn.lib' D:\ProgramLib\MySQLConnector\test\unit\template_bug_group\LINK bug123


i'll be glad for any solution.

Viewing all articles
Browse latest Browse all 527

Trending Articles



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