Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to compile and run tutorial code

I am trying to learn opencv, and I'm stalled on the first tutorial because I can't figure out how to complile and run the code.

Here is the tutorial: https://docs.opencv.org/2.4/doc/tutorials/core/mat_the_basic_image_container/mat_the_basic_image_container.html#matthebasicimagecontainer

The tutorial does not say what #include statements to use or how to compile using g++ or any other compiler. I would like to know how to run this code.

How to compile and run tutorial code

I am trying to learn opencv, and I'm stalled on the first tutorial because I can't figure out how to complile and run the code.

Here is the tutorial: https://docs.opencv.org/2.4/doc/tutorials/core/mat_the_basic_image_container/mat_the_basic_image_container.html#matthebasicimagecontainer

The tutorial does not say what #include statements to use or how to compile using g++ or any other compiler. I would like to know how to these things so that I can run this code. the tutorial code.