Thread View: pl.comp.lang.c
3 messages
3 total messages
Started by Borneq
Thu, 19 May 2016 04:35
Problem z mySQL connectorem pod Windows
Author: Borneq
Date: Thu, 19 May 2016 04:35
Date: Thu, 19 May 2016 04:35
12 lines
1327 bytes
1327 bytes
Zainstalowałem mySQL i C++ connector. W Visual Studio dodałem mysqlcppconn.lib, próbowałem też mysqlcppconn-static.lib. Są błędy: Error LNK2001 unresolved external symbol __imp_get_driver_instance Error LNK2001 unresolved external symbol "__declspec(dllimport) public: int __cdecl sql::SQLException::getErrorCode(void)const " (__imp_?getErrorCode@SQLException@sql@@QEBAHXZ) Być może polegają na niewłaściwych dllimport, __cdecl, braku podkreśleń w nazwach lub zbyt wielu podkreśleń?
Re: Problem z mySQL connectorem pod Windows
Author: Borneq
Date: Thu, 19 May 2016 04:46
Date: Thu, 19 May 2016 04:46
10 lines
1310 bytes
1310 bytes
W dniu 19.05.2016 o 06:35, Borneq pisze: > Zainstalowałem mySQL i C++ connector. W Visual Studio dodałem > mysqlcppconn.lib, próbowałem też mysqlcppconn-static.lib. > Dodałem If you use static linking, you need to set CPPCONN_PUBLIC_FUNC= in Project / Properties / C++ / Preprocessor / Preprocessor Definitions ale są teraz błędy: namespace "sql" has no member "SQLString"
Re: Problem z mySQL connectorem pod Windows
Author: Borneq
Date: Thu, 19 May 2016 05:02
Date: Thu, 19 May 2016 05:02
17 lines
1535 bytes
1535 bytes
W dniu 19.05.2016 o 06:46, Borneq pisze: > W dniu 19.05.2016 o 06:35, Borneq pisze: >> Zainstalowałem mySQL i C++ connector. W Visual Studio dodałem >> mysqlcppconn.lib, próbowałem też mysqlcppconn-static.lib. >> > Dodałem > If you use static linking, you need to set CPPCONN_PUBLIC_FUNC= in > Project / Properties / C++ / Preprocessor / Preprocessor Definitions > > ale są teraz błędy: > namespace "sql" has no member "SQLString" 1. wyrzuciłem CPPCONN_PUBLIC_FUNC 2. Na samym początku #include <cppconn/sqlstring.h> i działa dla 64 bitowego trybu! dla 32 bitowego są błędy linkowania, ale to nie szkodzi
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads