Linker error for Win32 app with MSVS2026

Gatti Gianluca <[email protected]> Fri, 10 Jul 2026 09:49:01 +0000
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <AS4PR10MB6110B236328ACF072C56B7659EFD2@AS4PR10MB6110.EURPRD10.PROD.OUTLOOK.COM>
--_000_AS4PR10MB6110B236328ACF072C56B7659EFD2AS4PR10MB6110EURP_
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello guys,

I was trying to build a (simple) wxWidgets application for x86 platform.
Therefore, I built wxWidgets from source: I choose wx_vc18 solution and bui=
lt it as DLL Release - Win32.
I extracted the wxWidgets source code .zip in the folder C:\wx\source_3.3.3

When compiling my app, I got a lot of linker error, in particular LNK2002 "=
unresolved external symbol..."

I didn't want to use the wxwidgets.props file because I noticed it has some=
 problems with different build configurations and other ones... therefore I=
 decided to explicitly define my own all the settings, as follow:


  *
C/C++
     *
General -> Additional Include Directories:
        *
C:\wx\source_3.3.3\include
        *
C:\wx\source_3.3.3\lib\vc_dll\mswu
     *
Preprocessor Definitions:
        *
_CRT_SECURE_NO_WARNINGS
        *
_UNICODE
  *
Linker
     *
Additional Library Directories:
        *
C:\wx\source_3.3.3\lib\vc_dll\mswu
     *
System -> SubSystem:
        *
Windows (/SUBSYSTEM:WINDOWS)

I think my goal is common, so maybe someone has already dealt with the prob=
lem.
Thank you in advance,

=E2=80=82=E2=80=82=E2=80=82=E2=80=82Gianluca



--=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/AS=
4PR10MB6110B236328ACF072C56B7659EFD2%40AS4PR10MB6110.EURPRD10.PROD.OUTLOOK.=
COM.

--_000_AS4PR10MB6110B236328ACF072C56B7659EFD2AS4PR10MB6110EURP_
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
Hello guys,</div>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
I was trying to build a (simple) wxWidgets application for x86 platform.</d=
iv>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
Therefore, I built wxWidgets from source: I choose <b>wx_vc18 </b>solution =
and built it as DLL Release - Win32.</div>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
I extracted the wxWidgets source code .zip in the folder C:\wx\source_3.3.3=
</div>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
When compiling my app, I got a lot of linker error, in particular <b>LNK200=
2 &quot;unresolved external symbol...&quot;</b></div>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
I didn't want to use the wxwidgets.props file because I noticed it has some=
 problems with different build configurations and other ones... therefore I=
 decided to explicitly define my own all the settings, as follow:</div>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
<br>
</div>
<ul data-editing-info=3D"{&quot;applyListStyleFromLevel&quot;:true}" style=
=3D"margin-top: 0px; margin-bottom: 0px; list-style-type: disc;">
<li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eu=
ropean)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica N=
eue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin-top:=
 0px; margin-bottom: 0px;">
<div class=3D"elementToProof" role=3D"presentation">C/C++</div>
</li><ul data-editing-info=3D"{&quot;applyListStyleFromLevel&quot;:true}" s=
tyle=3D"margin-top: 0px; margin-bottom: 0px; list-style-type: circle;">
<li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eu=
ropean)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica N=
eue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin-top:=
 0px; margin-bottom: 0px;">
<div role=3D"presentation">General -&gt; Additional Include Directories:</d=
iv>
</li><ul data-editing-info=3D"{&quot;applyListStyleFromLevel&quot;:true}" s=
tyle=3D"margin-top: 0px; margin-bottom: 0px; list-style-type: square;">
<li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eu=
ropean)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica N=
eue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin-top:=
 0px; margin-bottom: 0px;">
<div role=3D"presentation">C:\wx\source_3.3.3\include</div>
</li><li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (We=
st European)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvet=
ica Neue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin=
-top: 0px; margin-bottom: 0px;">
<div role=3D"presentation">C:\wx\source_3.3.3\lib\vc_dll\mswu</div>
</li></ul>
<li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eu=
ropean)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica N=
eue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin-top:=
 0px; margin-bottom: 0px;">
<div class=3D"elementToProof" role=3D"presentation">Preprocessor Definition=
s:</div>
</li><ul data-editing-info=3D"{&quot;applyListStyleFromLevel&quot;:true}" s=
tyle=3D"margin-top: 0px; margin-bottom: 0px; list-style-type: square;">
<li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eu=
ropean)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica N=
eue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin-top:=
 0px; margin-bottom: 0px;">
<div role=3D"presentation">_CRT_SECURE_NO_WARNINGS</div>
</li><li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (We=
st European)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvet=
ica Neue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin=
-top: 0px; margin-bottom: 0px;">
<div role=3D"presentation">_UNICODE</div>
</li></ul>
</ul>
<li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eu=
ropean)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica N=
eue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin-top:=
 0px; margin-bottom: 0px;">
<div class=3D"elementToProof" role=3D"presentation">Linker</div>
</li><ul data-editing-info=3D"{&quot;applyListStyleFromLevel&quot;:true}" s=
tyle=3D"margin-top: 0px; margin-bottom: 0px; list-style-type: circle;">
<li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eu=
ropean)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica N=
eue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin-top:=
 0px; margin-bottom: 0px;">
<div class=3D"elementToProof" role=3D"presentation">Additional Library Dire=
ctories:</div>
</li><ul data-editing-info=3D"{&quot;applyListStyleFromLevel&quot;:true}" s=
tyle=3D"margin-top: 0px; margin-bottom: 0px; list-style-type: square;">
<li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eu=
ropean)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica N=
eue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin-top:=
 0px; margin-bottom: 0px;">
<div role=3D"presentation">C:\wx\source_3.3.3\lib\vc_dll\mswu</div>
</li></ul>
<li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eu=
ropean)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica N=
eue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin-top:=
 0px; margin-bottom: 0px;">
<div class=3D"elementToProof" role=3D"presentation">System -&gt; SubSystem:=
</div>
</li><ul data-editing-info=3D"{&quot;applyListStyleFromLevel&quot;:true}" s=
tyle=3D"margin-top: 0px; margin-bottom: 0px; list-style-type: square;">
<li style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eu=
ropean)&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica N=
eue&quot;, sans-serif; font-size: 11pt; color: rgb(36, 36, 36); margin-top:=
 0px; margin-bottom: 0px;">
<div role=3D"presentation">Windows (/SUBSYSTEM:WINDOWS)</div>
</li></ul>
</ul>
</ul>
<div style=3D"margin-top: 0px; margin-bottom: 0px; font-family: &quot;Segoe=
 UI&quot;, &quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMa=
cSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11p=
t; color: rgb(36, 36, 36);">
<br>
</div>
<div class=3D"elementToProof" style=3D"margin-top: 0px; margin-bottom: 0px;=
 font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot=
;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, s=
ans-serif; font-size: 11pt; color: rgb(36, 36, 36);">
I think my goal is common, so maybe someone has already dealt with the prob=
lem.</div>
<div class=3D"elementToProof" style=3D"margin-top: 0px; margin-bottom: 0px;=
 font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot=
;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, s=
ans-serif; font-size: 11pt; color: rgb(36, 36, 36);">
Thank you in advance,</div>
<div class=3D"elementToProof" style=3D"margin-top: 0px; margin-bottom: 0px;=
 font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot=
;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, s=
ans-serif; font-size: 11pt; color: rgb(36, 36, 36);">
<br>
</div>
<div class=3D"elementToProof" style=3D"margin-top: 0px; margin-bottom: 0px;=
 font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot=
;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, s=
ans-serif; font-size: 11pt; color: rgb(36, 36, 36);">
=E2=80=82=E2=80=82=E2=80=82=E2=80=82Gianluca<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, -apple-system, BlinkMacSystemFont,=
 Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 11pt; color: rg=
b(36, 36, 36);">
<br>
</div>
<div id=3D"Signature" class=3D"elementToProof">
<div class=3D"elementToProof" style=3D"background-color: rgb(255, 255, 255)=
; margin: 0px;">
<table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" style=3D"text-align=
: left; text-indent: 0px; width: 450pt;" id=3D"table_0">
<tbody>
<tr>
<td style=3D"text-align: left; text-indent: 0px; padding: 0cm; width: 0.3pt=
; height: 22px; box-sizing: border-box;">
</td>
</tr>
</tbody>
</table>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
</div>
</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/AS4PR10MB6110B236328ACF072C56B7659EFD2%40AS4PR10MB6110.EURPRD10.PR=
OD.OUTLOOK.COM?utm_medium=3Demail&utm_source=3Dfooter">https://groups.googl=
e.com/d/msgid/wx-users/AS4PR10MB6110B236328ACF072C56B7659EFD2%40AS4PR10MB61=
10.EURPRD10.PROD.OUTLOOK.COM</a>.<br />

--_000_AS4PR10MB6110B236328ACF072C56B7659EFD2AS4PR10MB6110EURP_--