"expected constructor, destructor, or type conversion before 'cvAcc'"

I am getting this error when I try the execute my project. Please have a look and see if you wont notice anything that will help me.

thanks,

"expected constructor, destructor, or type conversion before 'cvAcc'"

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
part of the code is as follows:

#ifndef __OPENCV_IMGPROC_IMGPROC_C_H__
#define __OPENCV_IMGPROC_IMGPROC_C_H__


#include <opencv2/types_c.h>
#include <opencv2/imgproc_c.h>
#include <opencv2/imgproc.hpp>

#ifdef __cplusplus
extern "C" {
#endif

/** @addtogroup imgproc_c
@{
*/

/*********************** Background statistics accumulation *****************************/

/** @brief Adds image to accumulator
@see cv::accumulate
*/
CVAPI(void)  cvAcc( const CvArr* image, CvArr* sum,
                   const CvArr* mask CV_DEFAULT(NULL) );


  
show the client code.
Y ou are missing another endif at the end of the file for the first ifndef
Topic archived. No new replies allowed.