I build wxWidgets and/or my application using:
Build error
FAILED: [code=1] libs/net/CMakeFiles/wxnet.dir/////src/common/url.cpp.obj
C:\msys64\ucrt64\bin\c++.exe -DUNICODE -DWXBUILDING -DWXDLLNAME=wxbase333u_net_gcc_x64_custom -DWXMAKINGDLL_NET -DWXUSINGDLL -D_UNICODE -D__WXMSW__ -DwxUSE_BASE=1 -DwxUSE_GUI=0 -Dwxnet_EXPORTS -IC:/devel/repos/wxwidgets_libs/wxWidgets/cmake_build-msw_ucrt64-shared_unicode/lib/gcc_x64_dll/mswu -IC:/devel/repos/wxwidgets_libs/wxWidgets/include -O3 -DNDEBUG -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -MD -MT libs/net/CMakeFiles/wxnet.dir/////src/common/url.cpp.obj -MF libs\net\CMakeFiles\wxnet.dir____\src\common\url.cpp.obj.d -o libs/net/CMakeFiles/wxnet.dir/////src/common/url.cpp.obj -c C:/devel/repos/wxwidgets_libs/wxWidgets/src/common/url.cpp
C:/devel/repos/wxwidgets_libs/wxWidgets/src/common/url.cpp: In member function 'void wxURL::CleanData()':
C:/devel/repos/wxwidgets_libs/wxWidgets/src/common/url.cpp:215:25: error: 'class wxProtocol' has no member named 'Destroy'
215 | m_protocol->Destroy();
| ^~~~~~~
[984/1228] Building CXX object libs/aui/CMakeFiles/wxaui.dir/////src/aui/framemanager.cpp.obj
ninja: build stopped: subcommand failed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
You'll need to either use -DwxUSE_PROTOCOL=0 too or add #if wxUSE_PROTOCOL checks around all use of ms_protocols, m_protoinfo and m_protocol.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
That should not be needed to fix this issue. The cause is the class with the problem changes its base class and that method was in the socket base class. I just do not know c++ well enough to figure how to change that one line of code.
Tim S.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
You can skip just this call by using #if wxUSE_SOCKETS, but I don't think there is any point in using wxProtocol at all in this build configuration.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Okay, I will do that; I was afraid it might cause a memory leak.
I was going to do a delete m_protocol if I got no feedback
Adding an #if wxUSE_SOCKETS is cleaner around the one line.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()