MySQL Forums
Forum List  »  Connector/C++

MySQL/C++ SQLString.h missing
Posted by: Tanya Le Sage
Date: January 31, 2012 11:45AM

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!

Options: ReplyQuote


Subject
Views
Written By
Posted
MySQL/C++ SQLString.h missing
7877
January 31, 2012 11:45AM
3638
February 19, 2012 09:46AM
2858
February 20, 2012 06:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.