[英]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.