Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/145.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 致命错误C1083:无法打开包含文件:';iostream';;还获取错误->;没有此类文件或目录和';stdlib.h';_C++_Visual C++ - Fatal编程技术网

C++ 致命错误C1083:无法打开包含文件:';iostream';;还获取错误->;没有此类文件或目录和';stdlib.h';

C++ 致命错误C1083:无法打开包含文件:';iostream';;还获取错误->;没有此类文件或目录和';stdlib.h';,c++,visual-c++,C++,Visual C++,我在尝试编译这个特定项目时不断遇到这些问题: 1>------ Build started: Project: X, Configuration: Debug Win32 ------ 1>ESPWork.cpp 1>D:\X\test\ESPWork.cpp(1,9): fatal error C1083: Cannot open include file: 'iostream': No such file or directory 1>Source.cpp 1>

我在尝试编译这个特定项目时不断遇到这些问题:

1>------ Build started: Project: X, Configuration: Debug Win32 ------
1>ESPWork.cpp
1>D:\X\test\ESPWork.cpp(1,9): fatal error C1083: Cannot open include file: 'iostream': No such file or directory
1>Source.cpp
1>D:\X\test\Source.cpp(1,9): fatal error C1083: Cannot open include file: 'iostream': No such file or directory
1>MemoryManager.cpp
1>D:\X\test\MemoryManager.cpp(1,9): fatal error C1083: Cannot open include file: 'iostream': No such file or directory
1>DirectXM.cpp
1>D:\MicrosoftDirectXSDK\Include\d3d9.h(37,10): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory
1>Generating Code...
1>Done building project "test.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
我已将include目录设置为(D:\MicrosoftDirectXSDK\include) 和库目录设置为(D:\MicrosoftDirectXSDK\Lib\x86)

新发行:

1>------ Build started: Project: SAFU_IRAQ, Configuration: Debug Win32 ------
1>DirectXM.cpp
1>D:\Eary\test\MemoryManager.h(7,32): error C2039: 'wstring': is not a member of 'std'
1>D:\Stufff\VC\Tools\MSVC\14.24.28314\include\list(24): message : see declaration of 'std'
1>D:\Eary\test\MemoryManager.h(7,39): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Eary\test\MemoryManager.h(7,39): error C2143: syntax error: missing ',' before '&'
1>Done building project "test.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

您使用的是哪个Visual studio版本?我使用的是VS 2019,我认为包含目录的值应为=>$(VC_IncludePath)$(WindowsSDK_包括路径);如何使用它?您可以举一个例子说明(D:\MicrosoftDirectXSDK\Include)实际上,这些都是默认值,应该设置为包含系统ISO标准文件。Like=>C:\ProgramFiles(x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.24.28\include