WxWidgets compile error wxDatePickerCtrlGeneric

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.
Post Reply
dbi2022
In need of some credit
In need of some credit
Posts: 8
Joined: Wed Jan 12, 2022 8:25 am

WxWidgets compile error wxDatePickerCtrlGeneric

Post by dbi2022 »

Hi all!

I couldn't compile it, and just came around the solution. The platform and compiler are irrelevant, I think this is a generic error:

The generic Datepicker is disabled by default in the "setup.h" file, but the compiler still tries to compile it.. (and gave me an error).

I just changed this:

#if wxUSE_DATEPICKCTRL

into this:

#if wxUSE_DATEPICKCTRL_GENERIC

in:

source/generic/datectlg.cpp

and it sckiped the compilation of the generic date dialog, and it worked!!
User avatar
doublemax
Moderator
Moderator
Posts: 19159
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: WxWidgets compile error wxDatePickerCtrlGeneric

Post by doublemax »

Which wxWidgets version did you build?
Which compiler/version?
If you used a command line to build, which one?
Use the source, Luke!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: WxWidgets compile error wxDatePickerCtrlGeneric

Post by ONEEYEMAN »

Hi,
In addition to what doublemax said - what is EXACT error message you got?

Thank you.
dbi2022
In need of some credit
In need of some credit
Posts: 8
Joined: Wed Jan 12, 2022 8:25 am

Re: WxWidgets compile error wxDatePickerCtrlGeneric

Post by dbi2022 »

I tried to compile WxWidgets 3.1,5 with the "makefiles" option, gcc 10.2.0, on Windows 10.
I don't remeber the exact error message but it involved this generic DatePickerControl
I think the command was just: mingw32-make -f makefile.gcc -j 6
That was at work. At home it works without that modification! Strange.. well, there you have a solution if you have the same problem.
Ah, and the correct path is src/generic/datectlg.cpp
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: WxWidgets compile error wxDatePickerCtrlGeneric

Post by ONEEYEMAN »

Hi,
You shouldn't be doing that - everything compiles out of the box.
Can you try and rebuild the library. Maybe copy it somewhere, undo you changes and try to re-compile?

Thank you.
Post Reply