Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Dear all i'm Valerio,i downloaded wixwidgets 3.14,and compiled it in visual studio 2017,i compile as library dinamic DLL,i have much error link2001,i try change subsystem in linker settings,i set subsystem windows,but error link2001 is same.Do you have an idea which is additional dependencies correct?Thanks best regards Vale
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Hi,
Please compare the auidemo project with yours.
Thank youl.
Please compare the auidemo project with yours.
Thank youl.
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Thanks at all for help,i use this project in cartel msw of wxwidgets 3.14,wx_vc16.sln
D:\wxWidgets-3.1.4\build\msw\wx_vc16.sln.
i open wx_vc16.sln with visual studio 17,i set in dll libray in linker.
I compile and compare error linker.
Thanks
Best regards
Vale
D:\wxWidgets-3.1.4\build\msw\wx_vc16.sln.
i open wx_vc16.sln with visual studio 17,i set in dll libray in linker.
I compile and compare error linker.
Thanks
Best regards
Vale
- Attachments
-
- DLllybrary.JPG (67.73 KiB) Viewed 2861 times
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Other image with project open
- Attachments
-
- WxProject.JPG (31.49 KiB) Viewed 2860 times
- doublemax@work
- Super wx Problem Solver
- Posts: 474
- Joined: Wed Jul 29, 2020 6:06 pm
- Location: NRW, Germany
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
You definitely don't have to change anything in the solution file for wxWidgets. If you did make any changes, revert them, or just start from scratch.
Did you get the linker errors when building wxWidgets or when building your own project?
Did you get the linker errors when building wxWidgets or when building your own project?
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Ah ok,reports to the same configuration original,i compile in debug configuration,all ok.Now i try to open my own projects in debug and obtain this error :
1>wxbase31ud.lib(appbase.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(string.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(strconv.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(unichar.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(strvararg.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(object.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(arrstr.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(appbase.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(string.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(strconv.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(unichar.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(strvararg.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(object.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
1>wxbase31ud.lib(arrstr.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
other setup,error linker in compile debug is :
1>wxbase31ud.lib(appbase.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug'
Thanks
best regards
Vale
1>wxbase31ud.lib(appbase.obj) : error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug'
Thanks
best regards
Vale
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
You have to build both the library and your application with same settings, including the linking of the CRT.
My guess would be that you tried to build wxWidgets linking to the CRT statically but failed. However, while doing that is not recommended it is definitely possible when building wxWidgets as static library. Just make sure you change the setting for ALL projects and use Debug CRT in Debug configurations and Release CRT in release configurations.
You can select multiple projects in a solution at once in MSVS. Open wx_vc15.sln in MSVS, in Solution Explorer click on "adv" project and then <Shift>+click "xrc" project so that all projects are selected, right click any selected project to invoke project properties for all selected projects, and change the setting. After that, rebuild the whole library.
My guess would be that you tried to build wxWidgets linking to the CRT statically but failed. However, while doing that is not recommended it is definitely possible when building wxWidgets as static library. Just make sure you change the setting for ALL projects and use Debug CRT in Debug configurations and Release CRT in release configurations.
You can select multiple projects in a solution at once in MSVS. Open wx_vc15.sln in MSVS, in Solution Explorer click on "adv" project and then <Shift>+click "xrc" project so that all projects are selected, right click any selected project to invoke project properties for all selected projects, and change the setting. After that, rebuild the whole library.
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
So far I know, the solution wx_vc16.sln is for VS2019 isnt it?
Edit: I compiled wx_vc15.sln in VS2017 and I choose to compile everything in a batch build and this worked for me.
Meanwhile I use VS2019 and it can also be linked with VS2017 projects, because VS2015 to VS2019 are supposed to be binary link compatible.
However, the solution and project files are probably only upward compatible.
Last edited by Peter H on Fri Mar 12, 2021 3:58 pm, edited 3 times in total.
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Technically yes, but fortunately the differences betweens version are not as big as it used to be. So it will work fine. E.g. current VS versions will still happily import and convert the *vc9.vcproj project files from most of the samples.
Use the source, Luke!
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
This might depend, how the project files are generated.
I generated in Dialog Blocks projects for VS2017 and building them in VS2019 did not work.(Linking errors)
Building in VS2017 did work. Only after VS2017 saved the project it was compatible to VS2019.
(I hope there is a new version of Dialog Blocks soon, I already got a working beta)
If the projects are generated not by VS201x itself, but from a makefile there might be differences in compatibility.
Also see the Edit in my posting above.
I generated in Dialog Blocks projects for VS2017 and building them in VS2019 did not work.(Linking errors)
Building in VS2017 did work. Only after VS2017 saved the project it was compatible to VS2019.
(I hope there is a new version of Dialog Blocks soon, I already got a working beta)
If the projects are generated not by VS201x itself, but from a makefile there might be differences in compatibility.
Also see the Edit in my posting above.
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Dear all,thanks in advance,so i try to compile the right solution in vs2017,wx_vc15.sln,i try this solution.
Thanks
Thanks
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Just for clarification:
The number, e.g. 15 refers to the Visual Studio version so far I know.
e.g. VS2019 has version 16.x.x, VS2017 has version 15.x.x
You see the version if you type devenv /? or invoke "About Visual Studio" in the IDE.
Before I recognized this, I had several failures too, there are also tutorials that explain it wrong.
The number, e.g. 15 refers to the Visual Studio version so far I know.
e.g. VS2019 has version 16.x.x, VS2017 has version 15.x.x
You see the version if you type devenv /? or invoke "About Visual Studio" in the IDE.
Before I recognized this, I had several failures too, there are also tutorials that explain it wrong.
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Dear all,this is version of visual-studio that i used : 15.9.14,
Thanks
Best Regards
Vale
Thanks
Best Regards
Vale
- Attachments
-
- VersionVisualStudio.JPG (23.15 KiB) Viewed 2710 times
Re: Problem compiler visual studio 2017,wxwidgets 3.14,error link2001
Dear All,thanks for help,
now i recompile wxwidgets 3.14,all ok,but when launch my app,compare this error :
error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
Which setting in my project do setting?
Thanks
Best regards
Vale
now i recompile wxwidgets 3.14,all ok,but when launch my app,compare this error :
error LNK2038: rilevata errata corrispondenza per 'RuntimeLibrary': il valore 'MDd_DynamicDebug' non corrisponde al valore 'MTd_StaticDebug' in 16-Bit Flash Programmer.obj
Which setting in my project do setting?
Thanks
Best regards
Vale