Uskok wrote:My lib\ gcc_dll\mswu\wx\Setup.h is modified and the debug part is not commented anymore.
Code: Select all
#ifdef NDEBUG
#define wxDEBUG_LEVEL 0
#else
#define wxDEBUG_LEVEL 2
#endif
This makes the problem to link release version of wxSQLite3 (missing wxAssert, wxTrace, etc.) because there is small error in makefile.gcc
ifeq ($(WX_DEBUG),1)
__WXDEBUG_DEFINE_p = -D__WXDEBUG__
else <- else statement is missing
__WXDEBUG_DEFINE_p = -DNDEBUG
endif
Up to now all build files were generated using the tool bakefile 0.2.9. Unfortunately bakefile is heavily outdated ... and the new version is still work in progress and not adopted by wxWidgets itself. Maybe there is a way to tweak bakefile to generate the missing lines, but I'm far from being a bakefile expert.
In fact, I'm considering to move to another build system due to the deficiencies of bakefile. However, almost all tools have their drawbacks. So nothing is decided yet ...
Uskok wrote:
I would also suggest to modified CXXFLAGS and CPPFLAGS flags.
CXXFLAGS ?= -fno-keep-inline-dllexport -std=gnu++11
CPPFLAGS ?= -fno-keep-inline-dllexport -std=gnu++11
CXXFLAGS and CPPFLAGS are configurable flags. So you are free to add the definitions you prefer. You can even modify the makefile to your likings (as you did with the setup.h file).
Believe it or not, out there are still people using pre C++11, and even wxWidgets itself does not define these flags.
Since wxSQLite3 consists of just 1 source file and a few header files, just adding the files to your project instead of compiling them as a separate library would also be an option.
Sorry to have no better answer for you.
Regards,
Ulrich