Conflict of type size_t between OpenCV and OpenCL [closed]

asked 2015-09-01 09:12:35 -0600

Hi, in an OpenCL project (main file name is convolutionImg.cpp), i want to use OpenCV for displaying images. image description

But i have a conflict and i don't know how to solve it without having to modify the source code of cl.hpp or core/type_c.h.

image description

If somebody has an idea of what to do, it will really help !

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by champilulu
close date 2015-09-01 10:04:43.400336

Comments

2

if you delete namespace and use cl::size_t or cv::size_t is it OK?

LBerger gravatar imageLBerger ( 2015-09-01 09:15:53 -0600 )edit

I delete using namespace cl; and it works thanks !!

champilulu gravatar imagechampilulu ( 2015-09-01 09:18:32 -0600 )edit
1

As a good practice: You should always use the namespace::typeOrFunction for eliminating these kind of confusions not only for the readers, but compilers, too

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-09-01 09:26:32 -0600 )edit