Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
I recently installed C:B 16.01 with mingw4.9.2 and the corresponding wxwidgets binaries (under Win7 Prof 64).
In a simple wxwidgets project with wxsmith I get problems when I use wxCalendarCtrl and wxDateTimePickerCtrl.
Building it says:
C:\PROGRA~2\COMMON~1\wxwidget\include\wx\msw\datetimectrl.h|22|undefined reference to `vtable for wxDateTimePickerCtrl'|
obj\Debug\ErrorTestMain.o: In function `ZN20wxDateTimePickerCtrlD2Ev':
Being a newbie I don't know what is wrong here ...
Help appreciated.
wxCalendarCtrl and wxDateTimePickerCtrl are inside the "wxAdvanced" library, which is probably not in the list of libraries in your CB project.
If you're using wxWidgets 3.0.x, the filenames for that library will be:
libwxmsw30u_adv.a (release configuration)
libwxmsw30ud_adv.a (debug configuration)
For wxWidgets 3.1.x, replace the "30" with "31".
Add these to the libraries under Project -> Build options -> Linker settings.
There should already be a few wxWidgets libraries listed.
(As i don't use C:B, i'm not sure if this is 100% correct, but it should move you in the right direction)
I suspected a more complex reason, as the other "advanced widgets" (for example "colorpicker") linked without problem.
Kind of amusing however:
The produced exes are huge (as of all included functionality), but standard controls still aren't included
(Compared to MFC's exe size and libs).
Hi,
You can decrease the size of the executable by excluding all or some of the following:
- all or some of the bitmap handling libraries. They are compiled statically and if you will not use some (or all) of the formats you can exclude them.
- regex library. If you will use C++11 (don't know why you shouldn't) then this library becomes obsolete.
- xml library. If you don't use XML or the XRC system (wxWidgets resource system) you can exclude libxml.
Don't bother with trying to reduce the exe size. Even if you strip some unneeded libraries, the decrease in size will be very small. It's just not worth the effort.