Ask Your Question

Getting 'ACCESS_MASK': ambigous symbol error. [closed]

asked 2018-04-05 08:44:50 -0500

vps gravatar image

updated 2018-04-05 08:52:37 -0500

berak gravatar image

Hi, I am getting above error. I got the solution here link text but I want to use "Using namespace CV". If anyone have idea about this, let me know. Thanks.

opencv Version: 3.4.1 visual Studio: 2015 program start lines:

#include "opencv2/opencv.hpp"
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include "opencv2/imgcodecs.hpp"
#include <opencv2/highgui.hpp>
#include <opencv2/ml.hpp>

#include "superpixelslic.h"
#include "centeroid.h"
#include "pylon.h"
#include "core.h"
#include "stereo.h"

#include <vector>
#include <iostream>
#include <stdio.h>
#include <string>
#include <algorithm>
#include <fstream>

using namespace cv;
using namespace cv::ml;
using namespace std;
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2018-04-05 09:13:11.559308

1 answer

Sort by ยป oldest newest most voted

answered 2018-04-05 09:09:21 -0500

vps gravatar image

updated 2018-04-05 09:13:42 -0500

Hi, I got the solution. I am using the "using namespace cv" and "using namespace std" inside the centeroid.h header file. I have removed this declaration and able to build the program. @berak..It will be great, if you close this question.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-04-05 08:44:50 -0500

Seen: 254 times

Last updated: Apr 05 '18