|
|
1. c/c++ -> general -> additional include directories -> added the location of the build/include/opencv of my opencv folder, as well as the same one that ends with build/include/opencv2 |
build/include
to the path for this project instead of adding build/include/opencv2
#include "opencv2/somethinghere.hpp"
is saying include the somethinghere header file which is found in the opencv2 folder.Warning 1 warning C4627: '#include <opencv2/core/core.hpp>': skipped when looking for precompiled header use d:\users\user-pc\documents\visual studio 2013\projects\consoleapplication2\consoleapplication2\consoleapplication2.cpp 1 1 ConsoleApplication2 Warning 2 warning C4627: '#include <opencv2/highgui/highgui.hpp>': skipped when looking for precompiled header use d:\users\user-pc\documents\visual studio 2013\projects\consoleapplication2\consoleapplication2\consoleapplication2.cpp 2 1 ConsoleApplication2 Warning 3 warning C4627: '#include <iostream>': skipped when looking for precompiled header use d:\users\user-pc\documents\visual studio 2013\projects\consoleapplication2\consoleapplication2\consoleapplication2.cpp 3 1 ConsoleApplication2 Error 4 error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? d:\users\user-pc\documents\visual studio 2013\projects\consoleapplication2\consoleapplication2\consoleapplication2.cpp 31 1 ConsoleApplication2 5 IntelliSense: cannot open source file "opencv2/core/core.hpp" d:\Users\user-pc\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 1 1 ConsoleApplication2 6 IntelliSense: cannot open source file "opencv2/highgui/highgui.hpp" d:\Users\user-pc\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 2 1 ConsoleApplication2 7 IntelliSense: name must be a namespace name d:\Users\user-pc\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 5 17 ConsoleApplication2 8 IntelliSense: identifier "Mat" is undefined d:\Users\user-pc\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 16 2 ConsoleApplication2 9 IntelliSense: identifier "imread" is undefined d:\Users\user-pc\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 17 10 ConsoleApplication2 10 IntelliSense: identifier "IMREAD_COLOR" is undefined d:\Users\user-pc\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 17 26 ConsoleApplication2 11 IntelliSense: identifier "namedWindow" is undefined d:\Users\user-pc\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 25 2 ConsoleApplication2 12 IntelliSense: identifier "WINDOW_AUTOSIZE" is undefined d:\Users\user-pc\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 25 32 ConsoleApplication2 13 IntelliSense: identifier "imshow" is undefined d:\Users\user-pc\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 26 2 ConsoleApplication2 14 IntelliSense: identifier "waitKey" is undefined d:\Users\user-pc\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.cpp 28 2 ConsoleApplication2 |