Re: Problem on linking to static libraries

Sean Tolstoyevski <[email protected]> Thu, 18 Jun 2026 00:17:16 +0300
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
--Apple-Mail-E253FCE9-C336-40DA-A247-61B1BDCC0F7E
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html class=3D"apple-mail-supports-explicit-dark-mode"><head><meta http-equ=
iv=3D"content-type" content=3D"text/html; charset=3Dutf-8"></head><body dir=
=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr">why dont use vcpkg or mai=
nstream package manager?&nbsp;</div><div dir=3D"ltr"><br></div><div dir=3D"=
ltr"><br><blockquote type=3D"cite">On 17 Jun 2026, at 17:39, Erkam Murat Bo=
zkurt &lt;[email protected]&gt; wrote:<br><br></blockquote></div><b=
lockquote type=3D"cite"><div dir=3D"ltr">=EF=BB=BF<div dir=3D"ltr">Currentl=
y, I am developing a fully automatic C++ build system generator and I am pe=
rforming some tests on the platform. However, when I try to <br>give links =
to the wxWidgets libraries, it gives undefined reference to some libraries<=
br><br>)'<br>C:/Users/ermur/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.=
0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/pcynlitx.nova.<br>test/SOUR=
CE/GUI.DEVELOPMENT/wxLauncher.cpp:73:(.text+0x200): undefined reference to =
`wxImage::AddHandler(wxImageHandler*)'<br>C:/Users/ermur/mingw64/bin/../lib=
/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C=
:/pcynlitx.nova.<br>test/SOURCE/GUI.DEVELOPMENT/wxLauncher.cpp:87:(.text+0x=
329): undefined reference to `wxIcon::CopyFromBitmap(wxBitmap const&amp;)<b=
r>'<br>C:/Users/ermur/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../.=
./../../x86_64-w64-mingw32/bin/ld.exe: C:/pcynlitx.nova.<br>test/SOURCE/GUI=
.DEVELOPMENT/wxLauncher.cpp:89:(.text+0x34f): undefined reference to `wxTop=
LevelWindowBase::SetIcon(wxIcon co<br>nst&amp;)'<br>C:/Users/ermur/mingw64/=
bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin=
/ld.exe: C:/pcynlitx.nova.<br>test/SOURCE/GUI.DEVELOPMENT/wxLauncher.cpp:10=
7:(.text+0x508): undefined reference to `wxIcon::~wxIcon()'<br>C:/Users/erm=
ur/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-=
mingw32/bin/ld.exe: C:/pcynlitx.nova.<br>test/SOURCE/GUI.DEVELOPMENT/wxLaun=
cher.cpp:107:(.text+0x59a): undefined reference to `wxIcon::~wxIcon()'<br>C=
:/Users/ermur/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../=
x86_64-w64-mingw32/bin/ld.exe: wxLauncher.o: in <br>function `wxGet_wxConvL=
ibc()':<br><br><br>I have tried to link with full library path and include =
configuration files existing on mswud (setup.h file for wxMsw), but I faile=
d. <br><br>In my development repository, I have used auto configured cmake =
tools with FetchContent<br><br><br>include(FetchContent)<br><br>FetchConten=
t_Declare(<br>&nbsp; &nbsp;wxWidgets<br>&nbsp; &nbsp;GIT_REPOSITORY <a href=
=3D"https://github.com/wxWidgets/wxWidgets.git">https://github.com/wxWidget=
s/wxWidgets.git</a><br>&nbsp; &nbsp;GIT_TAG v3.3.1<br>&nbsp; &nbsp;GIT_PROG=
RESS TRUE<br>)<br><br>FetchContent_GetProperties(wxwidgets)<br>FetchContent=
_MakeAvailable(wxwidgets)<br><br>it Works without any problem. However, whe=
n 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.=
 <br><br>I have give the links of the project below<br><br><a href=3D"https=
://github.com/Erkam-Murat-Bozkurt/pcynlitx.nova">https://github.com/Erkam-M=
urat-Bozkurt/pcynlitx.nova</a><br><br><a href=3D"https://www.pcynlitx.com/"=
>https://www.pcynlitx.com/</a><br><br>Erkam Murat Bozkurt<br><br><br></div>

<p></p>

-- <br>
Please read <a href=3D"https://www.wxwidgets.org/support/mlhowto.htm">https=
://www.wxwidgets.org/support/mlhowto.htm</a> before posting.<br>
--- <br>
You received this message because you are subscribed to the Google Groups "=
wx-users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">wx-users+u=
[email protected]</a>.<br>
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
wx-users/CAG1x5-N30EtCuK2JPZgba0NmYpqkdX3PP8bmyqS3ST7ARVyVLA%40mail.gmail.c=
om?utm_medium=3Demail&amp;utm_source=3Dfooter">https://groups.google.com/d/=
msgid/wx-users/CAG1x5-N30EtCuK2JPZgba0NmYpqkdX3PP8bmyqS3ST7ARVyVLA%40mail.g=
mail.com</a>.<br>
</div></blockquote></body></html>

<p></p>

-- <br />
Please read <a href=3D"https://www.wxwidgets.org/support/mlhowto.htm">https=
://www.wxwidgets.org/support/mlhowto.htm</a> before posting.<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;wx-users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">wx-users+u=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
wx-users/24E3FD0A-344E-48B8-B795-FF78B4C4CB1B%40gmail.com?utm_medium=3Demai=
l&utm_source=3Dfooter">https://groups.google.com/d/msgid/wx-users/24E3FD0A-=
344E-48B8-B795-FF78B4C4CB1B%40gmail.com</a>.<br />

--Apple-Mail-E253FCE9-C336-40DA-A247-61B1BDCC0F7E--