Visual Studio 2012 alongside 2010 - kernel32.lib, windows.h

前端 未结 2 734
臣服心动
臣服心动 2021-02-14 14:41

I just installed Visual Studio 2012 alongside Visual Studio 2010. The problem is that I can\'t manage to convert simple projects from 2010 to 2012 - they fail to link to files s

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-14 15:00

    I had a similar problem.
    In my case this was because the correct paths weren't inherited in the project settings.

    Check that the paths are inherited in: Project -> Properties -> VC++ Directories
    Under Include and Library Directories go to Edit.

    Make sure that the Inherit from parent or project defaults is checked.

    The VS2012 default properties and Macros were set correctly. (Although I had the common installation problems where I had to replace all the VC directory because it didn't even install the C++ core libraries)

提交回复
热议问题