Ok, zrobiłem jak mówiłeś i zostało teraz jeszcze:
1>------ Build started: Project: Project Nythia - Serwer, Configuration: Debug Win32 ------
1> main.cpp
1> Unknown compiler version - please run the configure tests and report the results
1>d:\programy\microsoft visual studio 10.0\vc\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>d:\programy\microsoft visual studio 10.0\vc\include\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>d:\programy\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> ]
Ale to już warningi są, więc program się kompiluje. Dzięki za pomoc.