WxWidgest application with Microsoft Visual Studio

16 views
Skip to first unread message

Gatti Gianluca

unread,
Jul 2, 2026, 8:27:59 AM (23 hours ago) Jul 2
to wx-u...@googlegroups.com
Hello,

I am not able to build a very simple wxWidgets app (the HelloWorld example) with Microsoft Visual Studio compiler.
I followed the online documentation (https://docs.wxwidgets.org/3.3.2/plat_msw_install.html#msw_build_apps_msvc), but I got this build error:
    
1>C:\wx\3.3.2\wxwidgets.props(111,5): error : wxWidgets libraries not found under "C:\wx\3.3.2\lib\vc{,,}_x64_{lib,dll}".


Can someone help me?
Thank you very much,

    Gianluca

Maarten Bent

unread,
Jul 2, 2026, 8:44:38 AM (23 hours ago) Jul 2
to wx-u...@googlegroups.com
Hi,

Are you use Visual Studio 2026?
I think wxwidgets.props from 3.3.2 does not support his version yet because the toolset versions in your error message are empty.
You can try replacing it with the latest version from: https://github.com/wxWidgets/wxWidgets/blob/master/wxwidgets.props

And of course verify that the actual library files in wxDir/lib/vc14x_x64_dll (or similar) exists.
Either from building wxWidgets yourself, or from installing the prebuilt binaries.

Maarten

--
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 wx-users+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wx-users/DU0PR10MB5728050499DE4F4CDC204BBE9EF52%40DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.COM.

Gatti Gianluca

unread,
Jul 2, 2026, 9:07:38 AM (23 hours ago) Jul 2
to wx-u...@googlegroups.com
Yes, I use VS2026, thank you!
Bu tnow I got another build error:



Thank you in advance for any suggestions,
Gianluca


Da: wx-u...@googlegroups.com <wx-u...@googlegroups.com> per conto di Maarten Bent <maart...@gmail.com>
Inviato: giovedì 2 luglio 2026 14:44
A: wx-u...@googlegroups.com <wx-u...@googlegroups.com>
Oggetto: Re: WxWidgest application with Microsoft Visual Studio
 
Hi, Are you use Visual Studio 2026? I think wxwidgets. props from 3. 3. 2 does not support his version yet because the toolset versions in your error message are empty. You can try replacing it with the latest version from: https: //github. com/wxWidgets/wxWidgets/blob/master/wxwidgets. props
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
 
ZjQcmQRYFpfptBannerEnd

Gatti Gianluca

unread,
Jul 2, 2026, 9:20:59 AM (22 hours ago) Jul 2
to wx-u...@googlegroups.com
Sorry, not consider the previous email: these are the error I got now


Thank you,
Gianluca



Da: Gatti Gianluca <Gianluc...@fincantierinxt.it>
Inviato: giovedì 2 luglio 2026 15:07
A: wx-u...@googlegroups.com <wx-u...@googlegroups.com>
Oggetto: R: WxWidgest application with Microsoft Visual Studio
 

Gatti Gianluca

unread,
Jul 2, 2026, 9:30:51 AM (22 hours ago) Jul 2
to wx-u...@googlegroups.com
To be clearer, this is the linker error:

1>MSVCRT.lib(exe_main.obj) : error LNK2001: unresolved external symbol main 1>... : fatal error LNK1120: 1 unresolved externals

Thank you,
Gianluca


Da: Gatti Gianluca <Gianluc...@fincantierinxt.it>
Inviato: giovedì 2 luglio 2026 15:20

Vadim Zeitlin

unread,
Jul 2, 2026, 9:40:45 AM (22 hours ago) Jul 2
to wx-u...@googlegroups.com
On Thu, 2 Jul 2026 13:30:42 +0000 Gatti Gianluca wrote:

GG> 1>MSVCRT.lib(exe_main.obj) : error LNK2001: unresolved external symbol main

Your project must use Windows subsystem and not the console one as it
currently does.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/

Gatti Gianluca

unread,
2:34 AM (5 hours ago) 2:34 AM
to wx-u...@googlegroups.com
Hi Vadim,

I made it as it is written in the online documentation:


So what could be the problem?
Thank you in advance,
Gianluca



Da: wx-u...@googlegroups.com per conto di Vadim Zeitlin
Inviato: Giovedì, 02 Luglio, 2026 15:40
A: wx-u...@googlegroups.com
Oggetto: Re: R: WxWidgest application with Microsoft Visual Studio

Reply all
Reply to author
Forward
0 new messages