There is no way to compile and run QxOrm with MinGW using shared libs.
Thank you for your QxOrm. I run it successfuly after compiling with MSVC
QxOrm admin wrote:It is QxOrm dll problem
The problem is the way to export/import symbols from DLL.
You seems to have an option in your MinGW config that I don't have in my dev environment : auto-importing.
If you look into QxOrm.pri file, you can find this line : win32-g++: QMAKE_LFLAGS += -export-all-symbols ==> this is the only way I found to execute QxOrm samples without error (built using MinGW).
Maybe -export-all-symbols and auto-importing of MinGW compiler/linker options are not compatible ?
win32-g++: QMAKE_LFLAGS += -export-all-symbols -Wl,-enable-auto-import
When i add : win32-g++: QMAKE_LFLAGS += -export-all-symbols -Wl,-enable-auto-import
in QxOrm.pri all works fine. Please, fix it in next release.
PS: and thank you for QxORM
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -export-all-symbols -Wl,-enable-auto-import -shared -mthreads -Wl -Wl,--out-i
mplib,debug\libQxOrmd.a -o debug\QxOrmd.dll object_script.QxOrmd.Debug -L"d:\Dv
lp\_Libs\Qt\4.7.0_MINGW\lib" -LD:/Dvlp/_Libs/Boost/1_49/lib_shared -llibboost_se
rialization-mgw45-mt-d-1_49 -lQtSqld4 -lQtXmld4 -lQtGuid4 -lQtNetworkd4 -lQtCored4
Creating library file: debug\libQxOrmd.a
mingw32-make[1]: Leaving directory `D:/Dvlp/_Perso/QxOrm'
Users browsing this forum: No registered users and 0 guests