firebird database - ibpp
-
Are you sure you are linking to all the required libraries ?
-
@SGaist I'm not sure, if you have a suggestion please be my guest...
-
For which version of MSVC are your Firebrid libraries compiled ?
What about
ib_util_ms.lib
? -
@SGaist
Hi, I reinstalled Qt with MinGW, included ib_util_ms.lib and error looks like this:22:05:37: Running steps for project qtfb2... 22:05:37: Configuration unchanged, skipping qmake step. 22:05:37: Starting: "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" C:\Qt\5.8\mingw53_32\bin\qmake.exe -o Makefile ..\qtfb2\qtfb2.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug mingw32-make[1]: Entering directory 'C:/Users/jozol/OneDrive/APP-DEMO/build-qtfb2-Desktop_Qt_5_8_0_MinGW_32bit-Debug' g++ -Wl,-subsystem,windows -mthreads -o debug\qtfb2.exe debug/main.o debug/mainview.o debug/moc_mainview.o -lmingw32 -LC:\Qt\5.8\mingw53_32\lib C:\Qt\5.8\mingw53_32\lib\libqtmaind.a -LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib -lshell32 -LC:\Firebird\Firebird_3_0\lib -LC:\Firebird\Firebird_3_0\WOW64\lib -lAdvapi32 -lfbclient_ms -lib_util_ms C:\Qt\5.8\mingw53_32\lib\libQt5Widgetsd.a C:\Qt\5.8\mingw53_32\lib\libQt5Guid.a C:\Qt\5.8\mingw53_32\lib\libQt5Sqld.a C:\Qt\5.8\mingw53_32\lib\libQt5Cored.a debug/mainview.o: In function `ZN4IBPP15DatabaseFactoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_': C:\Users\jozol\OneDrive\APP-DEMO\build-qtfb2-Desktop_Qt_5_8_0_MinGW_32bit-Debug/../qtfb2/ibpp-core/ibpp.h:875: undefined reference to `IBPP::DatabaseFactory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' collect2.exe: error: ld returned 1 exit status Makefile.Debug:69: recipe for target 'debug\qtfb2.exe' failed mingw32-make[1]: *** [debug\qtfb2.exe] Error 1 mingw32-make[1]: Leaving directory 'C:/Users/jozol/OneDrive/APP-DEMO/build-qtfb2-Desktop_Qt_5_8_0_MinGW_32bit-Debug' Makefile:34: recipe for target 'debug' failed mingw32-make: *** [debug] Error 2 22:05:39: The process "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2. Error while building/deploying project qtfb2 (kit: Desktop Qt 5.8.0 MinGW 32bit) When executing step "Make" 22:05:39: Elapsed time: 00:03.
When I comment this line in .cpp file
// db=IBPP::DatabaseFactory(serverName,dbName,userName, password);
no error occures...
I really don't know what to do...I read on internet that this could be encoding problem, but I'm newb and it is little bit complex for me...
Regards. -
Again: which compiler was used to build your IBPP libraries ? It's really important on Windows since you can't mix and match compilers. Only VS2017 is compatible with VS2015.
-
@SGaist
Where can I see that?
I'm including only ibpp.h file in my project, no ibpp library file. -
Check the content of your package, README file etc. You can run Dependency Walker.
-
Checking the ZIP file contentes from https://www.firebirdsql.org/en/firebird-3-0-2/. Firebird is using MS compiler.
So, do not use MingW.
-
Is there a way around this?
Compilig a qibase driver maybe... -
A way around what ?
-
IBPP does not work with firebird3, I tried it with 2.5 and it works Ok.....