Ask Your Question
0

My error message

asked 2013-08-02 07:40:21 -0500

dogucan159 gravatar image

Hi,

My code is:

include <opencv2 core="" core.hpp="">

include <opencv2 highgui="" highgui.hpp="">

include <iostream>

using namespace cv; using namespace std;

int main( int argc, char** argv ) { if( argc != 2) { cout <<" Usage: display_image ImageToLoadAndDisplay" << endl; return -1; }

Mat image;
image = imread(argv[1], IMREAD_COLOR); // Read the file

if(! image.data )                      // Check for invalid input
{
    cout <<  "Could not open or find the image" << std::endl ;
    return -1;
}

namedWindow( "Display window", WINDOW_AUTOSIZE ); // Create a window for display.
imshow( "Display window", image );                // Show our image inside it.

waitKey(0); // Wait for a keystroke in the window
return 0;

} I got error message: Error error LNK1104: cannot open file 'opencv_core231d.lib'
What's wrong?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-08-02 09:16:23 -0500

berak gravatar image

check your PATH environment var, and make it point to the folder, where the opencv-dlls (for your compiler / os version) are.

edit flag offensive delete link more
0

answered 2013-08-02 09:16:14 -0500

SR gravatar image
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-08-02 07:40:21 -0500

Seen: 97 times

Last updated: Aug 02 '13