Problem with visual studio 17 and wxwidget3.1

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
User avatar
doublemax
Moderator
Moderator
Posts: 12507
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Problem with visual studio 17 and wxwidget3.1

Postby doublemax » Tue Apr 17, 2018 3:53 pm

MSVC 2017 doesn't even have a compatibility setting to produce such binary. You will have to copy it over to more modern Windows OS (WinVista+).
VS2017 can produce binaries that run on XP, if you have the proper toolkit installed (v141_xp) as OP mentioned.

To summarize:
You are talking about DLLs. I assume you mean that you use wxWidgets as DLL, not statically linked?
In that case it sounds like a bad idea to use static linking for the runtime libraries. Actually i'm not sure if this can work. You should definitely try with dynamic runtime and check if it changes anything.

You loaded wx_vc14.sln and selected the configuration "DLL release"?
Then you selected all libraries (from "adv" down to "xrc") and changed the runtime from /MD to /MT ?

And in your project you used the same settings?
Use the source, Luke!

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2567
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Problem with visual studio 17 and wxwidget3.1

Postby ONEEYEMAN » Tue Apr 17, 2018 4:40 pm

doublemax,
I thought that MSVC 2010 is the last that can produce WinXP binaries by default and then next one have the "Compatibility" settings which you should select, but after that you can't make a WinXP executable.

Guess I was wrong. Learn something new everyday. ;-)

Thank you.

User avatar
doublemax
Moderator
Moderator
Posts: 12507
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Problem with visual studio 17 and wxwidget3.1

Postby doublemax » Tue Apr 17, 2018 4:48 pm

Microsoft still officially supports "Windows 2009 POS" (which is basically XP with SP3) until April 2019. I guess that's the time when their compilers drop XP support forever.
Use the source, Luke!

Valerio
Earned a small fee
Earned a small fee
Posts: 14
Joined: Tue Apr 17, 2018 9:58 am

Re: Problem with visual studio 17 and wxwidget3.1

Postby Valerio » Tue Apr 24, 2018 8:46 am

Dear all,thanks for help me,i find solution,i use in sample,the project dialog,copy all setup in visual studio in my project,project compile ok.please set this topic as resolved.Thanks,best regards.Vale

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2567
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Problem with visual studio 17 and wxwidget3.1

Postby ONEEYEMAN » Wed Apr 25, 2018 3:14 pm

Hi,
Youi should mark the topic as solved yourself.
Just accept the answer that most helped you.

Thank you.


Return to “Compiler / Linking / IDE Related”

Who is online

Users browsing this forum: No registered users and 4 guests