当我将鼠标移到Mat关键字上时,Visual Studio 2017冻结(OpenCv 3.4.1)

ade*_*mez 8 c++ opencv

我想在Visual Studio 2017中开发openCv项目.我下载了opencv预构建库并进行了必要的设置.那是:

1)我添加了系统路径 ...build\x64\vc14\bin

2)在Visual Studio的项目属性中,我...opencv\build\include在C/C++ - > General Settings下添加了Additional Include Directories

3)我...opencv\build\x64\vc14\lib在链接器 - >常规设置下添加了附加包含目录

4)我opencv_world341d.lib在 - > 链接器- >输入设置下添加了附加依赖项

我编写了以下代码,编译时没有错误

 // opencv.cpp : Defines the entry point for the console application.

#include "stdafx.h"
#include <opencv2/opencv.hpp>
using namespace cv;

int main() {
    Mat img;
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

但是问题是当我在2-3秒后移动了关于Mat关键词的VS VS冻结并且无论如何都没有响应.你知道为什么会这样吗?

小智 3

您可以通过从顶部菜单开始并导航到“工具”、“选项”、“文本编辑器”、“C/C++”、“高级”并在 IntelliSense 下将“自动快速信息”的值更改为“False”来禁用“自动快速信息”选项。

这将关闭所有快速信息助手,但至少可以防止项目冻结。