Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

VS2013 solution error LNK2019: unparsed external symbol mfcs120ud.lib

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Recently, because I want to change a MFC project to rewrite learning MFC, I did not expect to use VS2013 to create the simplest MFC project to run hundreds of classes similar to "Error LNK2019: unparsed external symbols. Mfcs120ud.lib" error.

After a lot of twists and turns, I finally found out where the problem lies. Open C:\ Users\ Administrator\ AppData\ Local\ Microsoft\ MSBuild\ v4.0\ Microsoft.Cpp.Win32.user.props

It is found that the default library references $(WindowsSDK_LibraryPath_x64), that is, the 64-bit version of WindowsSDK's Lib library, while the compilation platform for Win32,Win32 in my VS project is not compatible with 64-bit versions of lib or dll libraries.

In addition, my project's default MFC library reference $(VCInstallDir) atlmfc\ lib is also 32-bit and is not compatible with 64-bit Windows SDK. I don't want to compile the 64-bit platform here, so I have to set both the library version and the compilation platform to 32-bit. The solution is simple: just change the $(WindowsSDK_LibraryPath_x64) of Microsoft.Cpp.Win32.user.props to $(WindowsSDK_LibraryPath_x86).

Here, I would like to complain that the most painful thing about VC++ development is that the compilation is not smooth. Because many development libraries are not backward compatible, various Dll,Lib or incorrect compiler versions will cause a lot of problems, as well as a lot of development environment configuration problems. It's better to open unity3d, no matter who wrote the old version in the unity3d integrated development environment, you can upgrade perfectly with a little modification, there is basically nothing to compile, but the version is not compatible. Of course, it can be because I am not familiar with VC++ development, to solve these miscellaneous problems is also a kind of improvement.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report