Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The problem was in linking a C library into a C++ program.

The solution was to wrap ccv.h into ccv.hpp which looks as follows

extern "C"
{
#include "ccv.h"
}

(add include guard as you like)

Then, I included ccv.hpp in the sources. If you want to know more, google name mangling.

And second, use find_package command to load the jpeg and png libraries.