When I try to compile this piece of code I am getting this error-
error: no matching function for call to 'glob(std::__cxx11::string&, std::vector >&, bool)' glob (folder, filename, false); ^
This is the code I used:
    #include <vector>
    #include <glob.h>
    string folder = "/home/ragesh/C++ /calibration_laptop/images/*.jpg";
    vector <string> filename;
    glob(folder, filename, false);
    if(count < filename.size())
    {
        img = imread(filename[count]);
        if(img.empty())
        {
            cout << "\nimage loading failed.....!"<<"\n";
            return 0;
        }
        imshow("image", img);
        cvtColor ( img,gray, COLOR_BGR2GRAY );// gray scale the source image
        vector<Point2f> corners; //this will be filled by the detected corners
        bool patternfound = findChessboardCorners(gray, boardSize, corners, CALIB_CB_ADAPTIVE_THRESH + CALIB_CB_NORMALIZE_IMAGE + CALIB_CB_FAST_CHECK);
        count ++;
    }
 
     
     
    