This should be a really straightforward question. When I run the following code: #include "main.h"
using namespace cv;
int main( int argc, char** argv )
{
Mat image;
image = imread("C:\\Users\\Public\\Pictures\\Sample Pictures\\Lighthouse.jpg");
namedWindow("k");
imshow("k",image);
waitKey(0);
}
This error shows up when I try to run the imread line. Anyone knows what am I doing wrong here?
Thank's in advace.
Additional Info
This is being done in visual studio 2008 professional editions on a windows 7 32-bit machine.
I'm trying to debug the "Release" version.
This is the main.h file:
#pragma once
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#endif
#pragma warning( disable: 4996 )
#include <cv.h>
#include <highgui.hpp>
#include <core.hpp>
My additional include directories (Configuration Properties -> C\C++ -> General) are:
- ...\OpenCV2.2\include\opencv2\highgui
- ...\OpenCV2.2\include\opencv2\
- ...\OpenCV2.2\include\opencv
- ...\OpenCV2.2\include
The (...) are merely for my privacy, the actual code contains the full path.
My "Additional Dependencies" (Configuration Properties -> Linker -> Input) are:
- "...\OpenCV 2.2.0\OpenCV2.2\lib\opencv_core220.lib"
- "...\OpenCV 2.2.0\OpenCV2.2\lib\opencv_highgui220.lib"