Page 1 of 1

Unable to use wxTimePickerCtrl

Posted: Sat Mar 16, 2019 8:19 pm
by sw
Hello everyone!

I am trying to use the

Code: Select all

wxTimePickerCtrl
in my program and I keep getting unresolved external symbol on everything involving that class. I get LNK2019 and LNK2001. I am using MSVC with vcpkg and CMake. I installed wxWidgets using vcpkg and the moment I try to instantiate the class I get all these linker errors.

As per the documentation I have defined

Code: Select all

wxUSE_TIMEPICKCTRL=1
in my

Code: Select all

target_compile_definitions
. Nobody else seems to have had this problem as I have been unsuccessful in finding anything relating to the time picker control on StackOverflow and other websites in terms of issues...

Any help is appreciated, thank you :D

Re: Unable to use wxTimePickerCtrl

Posted: Sat Mar 16, 2019 9:09 pm
by doublemax
vcpkg support is relatively new, i assume you used these instructions: https://www.wxwidgets.org/blog/2019/01/ ... and-vcpkg/ ?

I can't help with vcpkg, but building wxWidgets from source is very simple with Visual Studio, so i would suggest you try that.
viewtopic.php?p=189366#p189366