Re: Problem on linking to static libraries
Igor Korot <[email protected]> Wed, 17 Jun 2026 14:32:24 -0700
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <CA+FnnTxys6c+NYSb+5HuhTE9s5hepDcLajyWZr5+TOyGM=vqUQ@mail.gmail.com> |
Or even use CMake directly? Thank you. On Wed, Jun 17, 2026 at 2:17=E2=80=AFPM Sean Tolstoyevski <[email protected]> wrote: > > why dont use vcpkg or mainstream package manager? > > > On 17 Jun 2026, at 17:39, Erkam Murat Bozkurt <[email protected]>= wrote: > > =EF=BB=BF > Currently, I am developing a fully automatic C++ build system generator a= nd I am performing some tests on the platform. However, when I try to > give links to the wxWidgets libraries, it gives undefined reference to so= me 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 re= ference 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 re= ference 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 re= ference 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 r= eference 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 r= eference 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 fil= es existing on mswud (setup.h file for wxMsw), but I failed. > > In my development repository, I have used auto configured cmake tools wit= h 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 wit= h include and link directories, it fails. It is obvious that there is a con= figuration problem that I can not recognize. > > I have give the links of the project below > > https://github.com/Erkam-Murat-Bozkurt/pcynlitx.nova > > https://www.pcynlitx.com/ > > Erkam Murat Bozkurt > > > -- > Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. > --- > You received this message because you are subscribed to the Google Groups= "wx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to [email protected]. > To view this discussion visit https://groups.google.com/d/msgid/wx-users/= CAG1x5-N30EtCuK2JPZgba0NmYpqkdX3PP8bmyqS3ST7ARVyVLA%40mail.gmail.com. > > -- > Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. > --- > You received this message because you are subscribed to the Google Groups= "wx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to [email protected]. > To view this discussion visit https://groups.google.com/d/msgid/wx-users/= 24E3FD0A-344E-48B8-B795-FF78B4C4CB1B%40gmail.com. --=20 Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. ---=20 You received this message because you are subscribed to the Google Groups "= wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/wx-users/CA= %2BFnnTxys6c%2BNYSb%2B5HuhTE9s5hepDcLajyWZr5%2BTOyGM%3DvqUQ%40mail.gmail.co= m.