Note that there are some explanatory texts on larger screens.

plurals
  1. POImread causing fatal error on the program
    text
    copied!<p>This should be a really straightforward question. When I run the following code: </p> <pre><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); } </code></pre> <p>This <a href="http://s24.postimg.org/5iifa36hx/Capture.jpg" rel="nofollow">error</a> shows up when I try to run the imread line. Anyone knows what am I doing wrong here?</p> <p>Thank's in advace.</p> <hr> <h2>Additional Info</h2> <p>This is being done in visual studio 2008 professional editions on a windows 7 32-bit machine.</p> <p>I'm trying to debug the "Release" version.</p> <p>This is the main.h file: </p> <pre><code> #pragma once #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0600 #endif #pragma warning( disable: 4996 ) #include &lt;cv.h&gt; #include &lt;highgui.hpp&gt; #include &lt;core.hpp&gt; </code></pre> <p>My additional include directories (Configuration Properties -> C\C++ -> General) are:</p> <ul> <li>...\OpenCV2.2\include\opencv2\highgui</li> <li>...\OpenCV2.2\include\opencv2\</li> <li>...\OpenCV2.2\include\opencv</li> <li>...\OpenCV2.2\include</li> </ul> <p>The (...) are merely for my privacy, the actual code contains the full path.</p> <p>My "Additional Dependencies" (Configuration Properties -> Linker -> Input) are:</p> <ul> <li>"...\OpenCV 2.2.0\OpenCV2.2\lib\opencv_core220.lib"</li> <li>"...\OpenCV 2.2.0\OpenCV2.2\lib\opencv_highgui220.lib"</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload