简体   繁体   English

Visual Studio停止识别任何包含文件

[英]Visual Studio stopped recognizing any include files

So, I was randomly working on my project and visual studio 2017 was recognizing all my OpenCV stuff just fine, but randomly all of a sudden, it stopped recognizing it right while I was in the middle of coding it, there's errors all over the place saying that functions from OpenCV are undefined and that the source files cannot be opened, this literally makes no sense as it was just working and I had gotten stuff to compile and then all of a sudden in the middle of coding, it just will refuse to recognize anything, I'm really confused and I checked the include and library files and everything was just the same as it was when I had started out, I think something might be wrong with Visual Studio, but I have no idea what to do. 因此,我随机从事我的项目,Visual Studio 2017可以很好地识别我所有的OpenCV内容,但是突然之间,当我在编码的过程中,它突然停止正确识别它,到处都是错误说OpenCV中的函数是未定义的,并且无法打开源文件,这从字面上讲是没有意义的,因为它只是在工作,我已经有了要编译的东西,然后突然在编码过程中,它将拒绝识别任何东西,我真的很困惑,我检查了include和库文件,并且一切都与刚开始时的一样,我认为Visual Studio可能有问题,但是我不知道该怎么做。 I even tried restarting my computer to see if that fixed it, but I'm still stuck in the same boat :/ 我什至尝试重新启动计算机以查看是否能解决问题,但是我仍然卡在同一条船上:/

Edit: Interesting note, when I go to access the project properties, it no longer says properties, it just says properties, could it be a corrupt project? 编辑:有趣的是,当我访问项目属性时,它不再显示属性,而只是显示属性,这可能是一个损坏的项目吗?

Okay, so Richard Critten's suggestion of doing a chkdsk /f worked, I rebooted to have it check my main disk and now it oddly requires me to specify a folder in the include directory which I didn't have to do before which is odd, but now it's finally working and recognizing everything as it should. 好的,理查德·克里滕(Richard Critten)提出的执行chkdsk / f的建议起作用了,我重新启动以检查它的主磁盘,现在奇怪的是,我要求我在include目录中指定一个我以前不需要做的文件夹,这很奇怪,但现在终于可以正常工作,并且可以识别所有内容。 Thanks for the help, I just had never seen it before do that while in the middle of a project randomly which severely confused me. 感谢您的帮助,我只是在一个项目的中间就从未见过这样做,而这在我的项目中让我非常困惑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 即使指定了ProjectDir,使用包含文件也无法识别的pro * C文件进行编译时,编译错误(Visual Studio 2012) - Compilation error when compiling pro*C file with include files not recognizing, even after specifying the ProjectDir (Visual Studio 2012) 在新的Visual Studio项目中包含任何Eigen 3.3.1文件都不会编译 - include of any Eigen 3.3.1 files in fresh Visual Studio project won't compile 视觉工作室没有看到我的包含文件 - visual studio not seeing my include files 在Visual Studio中包括* .cpp文件的整个文件夹 - Include Whole Folder Of *.cpp Files In Visual Studio 无法在Visual Studio 2013中包含文件 - Unable to include files in Visual Studio 2013 如何在Visual Studio 2008中包含头文件? - How to include header files in Visual Studio 2008? Visual Studio无法识别某些类 - Visual Studio not recognizing certain classes Visual Studio C ++包含的包含文件的包含路径顺序 - Visual Studio C++ include path order for nested include files 即使使用#include,在Visual Studio中构建也无​​法识别getline()或stoi() <string> 和 <fstream> 声明 - Building in Visual Studio not recognizing getline() or stoi() even with #include <string> and <fstream> statements 如何在Visual Studio中包含dll / lib文件 - How to include files dll/lib files on visual studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM