找不到#include ??? [英] Can't Find #include???

查看:222
本文介绍了找不到#include ???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序有以下几行:
$
#include< opencv \highgui.h>

#include< opencv\cv.h>

#include< windows.h>

#include< stdio.h>

#include< fstream>

My program has following lines:
#include <opencv\highgui.h>
#include <opencv\cv.h>
#include <windows.h>
#include <stdio.h>
#include <fstream>

编译时,它找不到前两个包含行。我为DEBUG&设置了属性页面。 RELEASE分别显示:

When compiled, it does not find the first two include lines. I have set the Property pages for both DEBUG & RELEASE respectively to show:

VC ++ Library目录:   C:\ OpenCV249 \ BUILD \Include\opencv \; C:\ OpenCV249 \ BUILD \Include\opencv2(这些是highgui.h和cv.h所在的位置。)

VC++ Library Directories:   C:\OpenCV249\BUILD\Include\opencv\;C:\OpenCV249\BUILD\Include\opencv2 ( these are where highgui.h and cv.h reside.)

C / C ++(一般)附加包含库:  C:\OpenCV249\BUILD\include\opencv\; C:\OpenCV249\BUILD\include\opencv2\; (以及其他几个图书馆文件夹位置)               

C/C++ (General) Additional Include Libraries:  C:\OpenCV249\BUILD\include\opencv\;C:\OpenCV249\BUILD\include\opencv2\; (and several other library folder locations)                

链接器(常规)其他库目录:C:\ OpenCV249 \ BUILD \include\opencv; C:\OpenCV249\BUILD\include\opencv2\; (其他库文件夹位置)

Linker (General) Additional Library Directories: C:\OpenCV249\BUILD\include\opencv; C:\OpenCV249\BUILD\include\opencv2\; (other library folder locations)

链接器输入:Debug和amp;所需的库,dll等。在各自的属性页中发布版本。

Linker Input: Required libs, dlls, etc. for Debug & Release versions in their respective Property Pages.

我检查了拼写和语法的四倍。我已在系统路径中放置了正确的行并重新启动了几次。我不知道为什么没有看到这些文件!我一直收到这些错误......

I have quadruple checked the spelling and syntax. I have placed the proper lines in the System PATH and re-booted several times. I am at a loss as to why these files are not seen!! I keep getting these errors...

    1&NBSP;&NBSP;   IntelliSense:无法打开源文件"opencv \highgui.h"   

    1    IntelliSense: cannot open source file "opencv\highgui.h"   

    2&NBSP;&NBSP;   IntelliSense:无法打开源文件"opencv\cv.h"

    2    IntelliSense: cannot open source file "opencv\cv.h"

作为补充说明:如果我输入任一文件的完整路径,这两个错误就会消失。但是,找不到其他文件。我假设它在属性页面的某个地方是一个PATH的东西。思绪??

As an added note: If I type the full path to either file, these two errors goes away. However, then other files are not found. I am assuming it is a PATH thing in the Property Pages somewhere. Thoughts??

推荐答案

你得到了吗?编译时出现实际错误?  (智能感知消息不计算在内)。 如果代码编译,只需忽略或禁用Intellisense错误。
Do you get an actual error when you compile?  (Intellisense messages don't count).  If the code compiles, just ignore or disable the Intellisense errors.


这篇关于找不到#include ???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆