11.4. Programming Examples Using C/C++

Windows setup tips:

To get programs to compile in MSVC++, there are some things you must do.

- Release or debug mode. MSVC++ can make either release or debug code. OpenCV ships with only release code (you can build debug yourself). If a link error comes up requesting cvd.lib you are in debug mode. Go to the Build menu, select Set Active Configuration, and set it to release code.

- Include and library file paths must be set. Go to the Tools menu, select Options. Click on the Directories tab. Under Show Directories for, select Include files. Set the include path for

 C:\Program Files\OpenCV\cv\include C:\Program Files\OpenCV\cvaux\include C:\Program Files\OpenCV\otherlibs\cvcam\include C:\Program Files\OpenCV\otherlibs\highgui ...

Get Emerging Topics in Computer Vision now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.