So, I just got Visual Studio 2010 Professional, I created a simple mfc application, added code and did not change any project settings. When I try to compile it, I got this code:
1>------ Build started: Project: cadmenu, Configuration: Release Win32 ------ 1>Build started 10/15/2013 3:44:26 PM. 1>InitializeBuildStatus: 1> Touching "Release\cadmenu.unsuccessfulbuild". 1>ClCompile: 1> stdafx.cpp 1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h(54): fatal error C1083: Cannot open include file: 'new.h': No such file or directory 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:00.06 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
This also happens if I create a new mfc application and do not add any code. I searched the whole computer, no new.h.
I understand that this is because the new.h file is not included in the include directory, but that does not make any sense, because I just did a complete installation of a professional visual studio 2010. I tried to delete, delete all Visual Studio files, and then re-install install, but the problem persists. Can someone tell me what is happening and how can I fix it? Thank you very much!
I am using Windows 8 on a 64 bit machine. I tried googling this problem all day and no good result.
source share