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

MySQL/C++ SQLString.h missing (no replies)

$
0
0
Hi,

I am trying to get the MySQL C++ connector to work. I understand that the SQLString.h library has been missed out of the package as stated in the thread:

http://forums.mysql.com/read.php?167,387820,415344

and I have downloaded it from one of the zip packages as suggested. i am only writing a very basic test code. I now get the following errors instead...

///////////////////////////////////////////////////////////////////////////
1>------ Build started: Project: SQL_test, Configuration: Debug Win32 ------

1>Build started 31/01/2012 17:38:44.

1>InitializeBuildStatus:

1> Touching "Debug\SQL_test.unsuccessfulbuild".

1>ClCompile:

1> SQL_test.cpp

1>c:\documents and settings\mmtl\my documents\visual studio 2010\projects\mysql\sql_test\sql_test\include\cppconn\sqlstring.h(36): 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:\documents and settings\mmtl\my documents\visual studio 2010\projects\mysql\sql_test\sql_test\mysql_connection.h(156): warning C4251: 'sql::mysql::MySQL_Connection::proxy' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'sql::mysql::MySQL_Connection'

1> with

1> [

1> T=sql::mysql::NativeAPI::NativeConnectionWrapper

1> ]

1>c:\documents and settings\mmtl\my documents\visual studio 2010\projects\mysql\sql_test\sql_test\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:\documents and settings\mmtl\my documents\visual studio 2010\projects\mysql\sql_test\sql_test\include\cppconn\config.h(60): error C2371: 'int8_t' : redefinition; different basic types

1> c:\program files\microsoft visual studio 10.0\vc\include\stdint.h(17) : see declaration of 'int8_t'

1>c:\documents and settings\mmtl\my documents\visual studio 2010\projects\mysql\sql_test\sql_test\include\cppconn\config.h(60): error C2371: 'int8_t' : redefinition; different basic types

1> c:\program files\microsoft visual studio 10.0\vc\include\stdint.h(17) : see declaration of 'int8_t'

1>

1>Build FAILED.

1>

1>Time Elapsed 00:00:05.98

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
/////////////////////////////////////////////////////////////////////////////

I see that a couple of people have posted this before but I haven't managed to find any responses. I would really appreciate any help that anybody could give me. I am a beginner so please be patient with me!

Thank you for any help you can give!

Viewing all articles
Browse latest Browse all 527

Trending Articles



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