Unable to use wxTimePickerCtrl

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
sw
In need of some credit
In need of some credit
Posts: 1
Joined: Sat Mar 16, 2019 8:09 pm

Unable to use wxTimePickerCtrl

Post by sw » Sat Mar 16, 2019 8:19 pm

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

User avatar
doublemax
Moderator
Moderator
Posts: 13417
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Unable to use wxTimePickerCtrl

Post by doublemax » Sat Mar 16, 2019 9:09 pm

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
Use the source, Luke!

Post Reply