MySQL Forums
Forum List  »  Connector/C++

Re: C++ & MySQL - I NEED URGENT HELP
Posted by: mike p
Date: October 26, 2011 09:17AM

Ive been trying to get mysql running on VS2010 myself.

Commenting the int8_t definition in config.h removes the errors. but two warnings remain.

c:\program files (x86)\mysql\connector c++ 1.1.0\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'

C:\Program Files (x86)\MySQL\Connector C++ 1.1.0\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'

Every time i run the program i get the error that i cannot connect to the database due to a e.what()="Unkown exception" thrown by driver = get_driver_instance();

Did you get this working?

Options: ReplyQuote


Subject
Views
Written By
Posted
5245
September 15, 2011 04:02AM
Re: C++ & MySQL - I NEED URGENT HELP
2373
October 26, 2011 09:17AM


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.