Currently, I am developing a fully automatic C++ build system generator and I am performing some tests on the platform. However, when I try to
give links to the wxWidgets libraries, it gives undefined reference to some libraries
)'
C:/Users/ermur/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/pcynlitx.nova.
test/SOURCE/GUI.DEVELOPMENT/wxLauncher.cpp:73:(.text+0x200): undefined reference to `wxImage::AddHandler(wxImageHandler*)'
C:/Users/ermur/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/pcynlitx.nova.
test/SOURCE/GUI.DEVELOPMENT/wxLauncher.cpp:87:(.text+0x329): undefined reference to `wxIcon::CopyFromBitmap(wxBitmap const&)
'
C:/Users/ermur/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/pcynlitx.nova.
test/SOURCE/GUI.DEVELOPMENT/wxLauncher.cpp:89:(.text+0x34f): undefined reference to `wxTopLevelWindowBase::SetIcon(wxIcon co
nst&)'
C:/Users/ermur/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/pcynlitx.nova.
test/SOURCE/GUI.DEVELOPMENT/wxLauncher.cpp:107:(.text+0x508): undefined reference to `wxIcon::~wxIcon()'
C:/Users/ermur/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/pcynlitx.nova.
test/SOURCE/GUI.DEVELOPMENT/wxLauncher.cpp:107:(.text+0x59a): undefined reference to `wxIcon::~wxIcon()'
C:/Users/ermur/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: wxLauncher.o: in
function `wxGet_wxConvLibc()':
I have tried to link with full library path and include configuration files existing on mswud (setup.h file for wxMsw), but I failed.
In my development repository, I have used auto configured cmake tools with FetchContent
include(FetchContent)
FetchContent_Declare(
wxWidgets
GIT_REPOSITORY
https://github.com/wxWidgets/wxWidgets.git GIT_TAG v3.3.1
GIT_PROGRESS TRUE
)
FetchContent_GetProperties(wxwidgets)
FetchContent_MakeAvailable(wxwidgets)
it Works without any problem. However, when I try to make direkt link with include and link directories, it fails. It is obvious that there is a configuration problem that I can not recognize.
I have give the links of the project below
https://github.com/Erkam-Murat-Bozkurt/pcynlitx.novahttps://www.pcynlitx.com/Erkam Murat Bozkurt