C1083: Cannot open include file: math.h: No such file or directory(C1083:无法打开包含文件:math.h:没有这样的文件或目录)
问题描述
I have a bunch of these errors and am at a dead end.
Found plenty of answers on google but unfortunately none of them work
I am using Visual Studio 2012.
All the files it says is cant find are on my computer in this folder
C:Program FilesMicrosoft Visual Studio 11.0VCinclude
Even when I right click on the include statement and click on 'Open Document ' it takes me to the document, so it is clearly there and can be seen
I tried adding the directory to the 'Additional Directories' field in options too but did not solve it.
If I use the include statement with the full path like so :
#include <C:Program FilesMicrosoft Visual Studio 11.0VCincludemath.h>
Then is works but if the math.h file has any include statements I need to add the path to them as well and so on.
Any Idea what is happening and what else I can try?
EDIT: Going to try and create a new project from scratch and see if that helps. It is possible I touched a settings I shouldn't have
Right-click your project, go to Properties, then go to VC++ Directories and open the editor for Include Directories. There should be a tick box labelled "Inherit from parent or project defaults". You will see that Visual Studio includes some predefined directories.
If the box is already ticked and Visual Studio isn't finding the directories then try adding these directories yourself:
$(VCInstallDir)include
$(VCInstallDir)atlmfcinclude
$(WindowsSDK_IncludePath)
这篇关于C1083:无法打开包含文件:math.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:C1083:无法打开包含文件:math.h:没有这样的文件或目录
- Qt计时器使用方法详解 2023-05-30
- C++ 数据结构超详细讲解顺序表 2023-03-25
- C语言qsort()函数的使用方法详解 2023-04-26
- 详解C语言中sizeof如何在自定义函数中正常工作 2023-04-09
- C语言详解float类型在内存中的存储方式 2023-03-27
- C语言手把手带你掌握带头双向循环链表 2023-04-03
- 我应该为我的项目使用相对包含路径,还是将包含目录放在包含路径上? 2022-10-30
- c++ const 成员函数,返回一个 const 指针.但是返回的指针是什么类型的 const? 2022-10-11
- ubuntu下C/C++获取剩余内存 2023-09-18
- Easyx实现扫雷游戏 2023-02-06