I'm getting those annoying errors while compiling test program for connect to mysql DB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\sqlstring.h(23): warning C4251: 'sql::SQLString::realStr' : class'std::basic_string<_Elem,_Traits,_Ax>' needs to have dll-interface to be used by clients of class'sql::SQLString'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>,
1> _Ax=std::allocator<char>
1> ]
1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\cppconn\exception.h(59): warning C4251: 'sql::SQLException::sql_state' : class'std::basic_string<_Elem,_Traits,_Ax>' needs to have dll-interface to be used by clients of class'sql::SQLException'
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits<char>,
1> _Ax=std::allocator<char>
1> ]
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cppconn\config.h(60): error C2371: 'int8_t' : redefinition; different basic types
1> c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(17) : see declaration of 'int8_t'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cppconn\config.h(60): error C2371: 'int8_t' : redefinition; different basic types
1> c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(17) : see declaration of 'int8_t'