shel писал(а): Юлия, меня кое кто просил вас не трогать, поэтому ваш пост я опускаю.
1>------ Build started: Project: csorwpmg, Configuration: Release Win32 ------
1>Build started 21.01.2012 19:01:49.
1>InitializeBuildStatus:
1> Touching ".\release/obj\csorwpmg.unsuccessfulbuild".
1>ClCompile:
1> dllapi.cpp
1>C:\CSO Russia WPMG\cstrike\addons\csorwpmg\source\hlsdk\multiplayer\engine\eiface.h(416): warning C4005: 'ARRAYSIZE' : macro redefinition
1> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(1140) : see previous definition of 'ARRAYSIZE'
1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stddef.h(60): warning C4005: 'offsetof' : macro redefinition
1> C:\CSO Russia WPMG\cstrike\addons\csorwpmg\source\hlsdk\multiplayer\engine\eiface.h(394) : see previous definition of 'offsetof'
1>c:\cso russia wpmg\cstrike\addons\csorwpmg\source\mysql\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:\CSO Russia WPMG\cstrike\addons\csorwpmg\source\mysql\include\mysql_driver.h(50): warning C4251: 'sql::mysql::MySQL_Driver::proxy' : class 'boost::scoped_ptr<T>' needs to have dll-interface to be used by clients of class 'sql::mysql::MySQL_Driver'
1> with
1> [
1> T=sql::mysql::NativeAPI::NativeDriverWrapper
1> ]
1>C:\CSO Russia WPMG\cstrike\addons\csorwpmg\source\mysql\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>..\dllapi.cpp(130): error C2027: use of undefined type 'sql::Statement'
1> C:\CSO Russia WPMG\cstrike\addons\csorwpmg\source\mysql\include\cppconn/connection.h(45) : see declaration of 'sql::Statement'
1>..\dllapi.cpp(130): error C2227: left of '->execute' must point to class/struct/union/generic type
1>..\dllapi.cpp(131): error C2027: use of undefined type 'sql::Statement'
1> C:\CSO Russia WPMG\cstrike\addons\csorwpmg\source\mysql\include\cppconn/connection.h(45) : see declaration of 'sql::Statement'
1>..\dllapi.cpp(131): error C2227: left of '->execute' must point to class/struct/union/generic type
1>..\dllapi.cpp(132): error C2027: use of undefined type 'sql::Statement'
1> C:\CSO Russia WPMG\cstrike\addons\csorwpmg\source\mysql\include\cppconn/connection.h(45) : see declaration of 'sql::Statement'
1>..\dllapi.cpp(132): error C2227: left of '->execute' must point to class/struct/union/generic type
1>..\dllapi.cpp(133): error C2027: use of undefined type 'sql::Statement'
1> C:\CSO Russia WPMG\cstrike\addons\csorwpmg\source\mysql\include\cppconn/connection.h(45) : see declaration of 'sql::Statement'
1>..\dllapi.cpp(133): error C2227: left of '->execute' must point to class/struct/union/generic type
1>..\dllapi.cpp(135): warning C4150: deletion of pointer to incomplete type 'sql::Statement'; no destructor called
1> C:\CSO Russia WPMG\cstrike\addons\csorwpmg\source\mysql\include\cppconn/connection.h(45) : see declaration of 'sql::Statement'
1> meta_api.cpp
1>C:\CSO Russia WPMG\cstrike\addons\csorwpmg\source\hlsdk\multiplayer\engine\eiface.h(416): warning C4005: 'ARRAYSIZE' : macro redefinition
1> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(1140) : see previous definition of 'ARRAYSIZE'
1> Generating Code...
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:04.40
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
sql::mysql::MySQL_Driver *driver;
sql::Connection *con;
sql::Statement *stmt;
driver = sql::mysql::get_mysql_driver_instance();
con = driver->connect("skrito", "skrito", "skrito");
stmt = con->createStatement();
stmt->execute("USE skrito");
stmt->execute("DROP TABLE IF EXISTS test");
stmt->execute("CREATE TABLE test(id INT, label CHAR(1))");
stmt->execute("INSERT INTO test(id, label) VALUES (1, 'a')");
delete stmt;
delete con;
Сейчас этот форум просматривают: Bing [Bot] и гости: 6