1 (edited by a1dancole 2016-11-28 15:57:52)

Using Visual Studio 2015 with C++ 14.0 build tools.
Have MySQL Server 5.7 installed but downloaded the 5.5 C++ connector (in an attempt to sort this out!).

Any help is apreciated

I'm getting the below build errors or part of it, to save your eyes.

Severity    Code    Description    Project    File    Line    Suppression State
Error    LNK2019    unresolved external symbol _mysql_stmt_field_count@4 referenced in function "public: __thiscall PreparedQueryResult::PreparedQueryResult(struct st_mysql_stmt *)" (??0PreparedQueryResult@@QAE@PAUst_mysql_stmt@@@Z)    oregon-realm    C:\Victis\Desolate\src\oregonrealm\shared.lib(QueryResult.obj)    1    
Error    LNK1120    44 unresolved externals    oregon-realm    C:\Victis\Desolate\bin\Debug\oregon-realm.exe    1    
Error    LNK1120    44 unresolved externals    oregon-core    C:\Victis\Desolate\bin\Debug\oregon-core.exe    1    
Error    LNK2019    unresolved external symbol _mysql_affected_rows@4 referenced in function "private: bool __thiscall Database::_Query(char const *,struct st_mysql_res * *,struct st_mysql_field * *,unsigned __int64 *,unsigned int *)" (?_Query@Database@@AAE_NPBDPAPAUst_mysql_res@@PAPAUst_mysql_field@@PA_KPAI@Z)    oregon-realm    C:\Victis\Desolate\src\oregonrealm\shared.lib(Database.obj)    1    
Error    LNK2019    unresolved external symbol _mysql_affected_rows@4 referenced in function "private: bool __thiscall Database::_Query(char const *,struct st_mysql_res * *,struct st_mysql_field * *,unsigned __int64 *,unsigned int *)" (?_Query@Database@@AAE_NPBDPAPAUst_mysql_res@@PAPAUst_mysql_field@@PA_KPAI@Z)    oregon-core    C:\Victis\Desolate\src\oregoncore\shared.lib(Database.obj)    1 
rror    LNK2001    unresolved external symbol _mysql_thread_init@0    oregon-realm    C:\Victis\Desolate\src\oregonrealm\shared.lib(SqlDelayThread.obj)    1    
Error    LNK2001    unresolved external symbol _mysql_thread_init@0    oregon-core    C:\Victis\Desolate\src\oregoncore\shared.lib(SqlDelayThread.obj)    1    
Error    LNK2019    unresolved external symbol _mysql_thread_init@0 referenced in function "public: void __thiscall Database::ThreadStart(void)" (?ThreadStart@Database@@QAEXXZ)    oregon-realm    C:\Victis\Desolate\src\oregonrealm\shared.lib(Database.obj)    1    
Error    LNK2019    unresolved external symbol _mysql_thread_init@0 referenced in function "public: void __thiscall Database::ThreadStart(void)" (?ThreadStart@Database@@QAEXXZ)    oregon-core    C:\Victis\Desolate\src\oregoncore\shared.lib(Database.obj)    1    
Error    LNK2019    unresolved external symbol _mysql_thread_safe@0 referenced in function "public: __thiscall Database::Database(void)" (??0Database@@QAE@XZ)    oregon-realm    C:\Victis\Desolate\src\oregonrealm\shared.lib(Database.obj)    1    
Error    LNK2019    unresolved external symbol _mysql_thread_safe@0 referenced in function "public: __thiscall Database::Database(void)" (??0Database@@QAE@XZ)    oregon-core    C:\Victis\Desolate\src\oregoncore\shared.lib(Database.obj)    1    
Error    LNK2019    unresolved external symbol _mysql_use_result@4 referenced in function "public: bool __thiscall Database::ExecuteFile(char const *)" (?ExecuteFile@Database@@QAE_NPBD@Z)    oregon-realm    C:\Victis\Desolate\src\oregonrealm\shared.lib(Database.obj)    1    
Error    LNK2019    unresolved external symbol _mysql_use_result@4 referenced in function "public: bool __thiscall Database::ExecuteFile(char const *)" (?ExecuteFile@Database@@QAE_NPBD@Z)    oregon-core    C:\Victis\Desolate\src\oregoncore\shared.lib(Database.obj)    1       

https://forums.oregon-core.net/viewtopi … 358#p16358   good build

3 (edited by a1dancole 2016-11-29 09:18:50)

Thank you - it ended up being the MySQL library files, so I downloaded the ones you'd uploaded - building the solution with those includes worked