Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

support for C ended in 2010, you have to use c++ now.

(because the project I'm working on require C).

do the following:

  1. seperate the opencv code from the rest of your project, compile the c++ opencv code seperately, using g++
  2. make your own c interface around the opencv code
  3. link it all together.

support for C ended in 2010, you have to use c++ now.now.

even if you try to use the outdated (still existing) c-api headers & functions, you have to use a c++ compiler, not c99.

(because the project I'm working on require C).

do the following:

  1. seperate the opencv code from the rest of your project, compile the c++ opencv code seperately, using g++
  2. make your own c interface around the opencv code
  3. link it all together.

support for C ended in 2010, you have to use c++ now.

even if you try to use the outdated (still existing) c-api headers & functions, you have to use a c++ compiler, not c99.

(because the project I'm working on require C).

do the following:

  1. seperate the opencv code from the rest of your project, compile the c++ opencv code seperately, using g++
  2. make your own c interface around the opencv codecode, so you can call it from your C code, without including opencv c++ headers
  3. link it all together.

support for C ended in 2010, you have to use c++ now.

even if you try to use the outdated (still existing) c-api headers & functions, you have to use a c++ compiler, not c99.

(because the project I'm working on require C).

do the following:

  1. seperate the opencv code from the rest of your project, compile the c++ opencv code seperately, using g++
  2. make your own c interface around the your opencv code, so you can call it from your C code, project, without including opencv c++ headers
  3. link it all together.

support for C ended in 2010, you have to use c++ now.

even if you try to use the outdated (still existing) c-api headers & functions, functions(and you should NOT !), you have to use a c++ compiler, not c99.

(because the project I'm working on require C).

do the following:

  1. seperate the opencv code from the rest of your project, compile the c++ opencv code seperately, using g++
  2. make your own c interface around your opencv code, so you can call it from your C project, without including opencv c++ headers
  3. link it all together.