Temporary header file '/tmp/ZErLHCmDd5/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/include/CImg.h" #include "/usr/include/plugins/add_fileformat.h" #include "/usr/include/plugins/bayer.h" #include "/usr/include/plugins/chlpca.h" #include "/usr/include/plugins/cvMat.h" #include "/usr/include/plugins/draw_gradient.h" #include "/usr/include/plugins/inpaint.h" #include "/usr/include/plugins/ipl.h" #include "/usr/include/plugins/ipl_alt.h" #include "/usr/include/plugins/jpeg_buffer.h" #include "/usr/include/plugins/loop_macros.h" #include "/usr/include/plugins/matlab.h" #include "/usr/include/plugins/nlmeans.h" #include "/usr/include/plugins/skeleton.h" #include "/usr/include/plugins/tiff_stream.h" #include "/usr/include/plugins/tinymatwriter.h" #include "/usr/include/plugins/vrml.h" #include "/usr/include/plugins/vtk.h" // add namespaces namespace cimg_library{typedef int tmp_add_type_1;} cimg_library::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace cimg_library{namespace cimg{typedef int tmp_add_type_2;}} cimg_library::cimg::tmp_add_type_2 tmp_add_func_2(){return 0;}; // add classes _G_fpos64_t* tmp_add_class_0; _G_fpos_t* tmp_add_class_1; _IO_cookie_io_functions_t* tmp_add_class_2; _PointFlux* tmp_add_class_3; _XComposeStatus* tmp_add_class_4; _XEvent* tmp_add_class_5; _XExtData* tmp_add_class_6; _XIMHotKeyTrigger* tmp_add_class_7; _XIMHotKeyTriggers* tmp_add_class_8; _XIMPreeditCaretCallbackStruct* tmp_add_class_9; _XIMPreeditDrawCallbackStruct* tmp_add_class_10; _XIMPreeditStateNotifyCallbackStruct* tmp_add_class_11; _XIMStatusDrawCallbackStruct* tmp_add_class_12; _XIMStringConversionCallbackStruct* tmp_add_class_13; _XIMStringConversionText* tmp_add_class_14; _XIMText* tmp_add_class_15; _XImage* tmp_add_class_16; _compare_point* tmp_add_class_17; itimerval* tmp_add_class_18; mem_destination_mgr* tmp_add_class_19; my_source_mem* tmp_add_class_20; my_source_mgr* tmp_add_class_21; statx_timestamp* tmp_add_class_22; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/ZErLHCmDd5/dump1.h" -I/usr/include/opencv4 -I/usr/include/OpenEXR -I/usr/include/Imath -I/usr/include/GraphicsMagick -I/usr/include/GraphicsMagick/magick -I/usr/include/arm-linux-gnueabihf/opencv4/opencv2 In file included from /tmp/ZErLHCmDd5/dump1.h:23: /usr/include/plugins/matlab.h:71:2: error: #error the file mex.h must be included prior to inclusion of matlab.h 71 | #error the file mex.h must be included prior to inclusion of matlab.h | ^~~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:26: /usr/include/plugins/tiff_stream.h:59:2: error: #error cimg_use_tiff not defined 59 | #error cimg_use_tiff not defined | ^~~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:13: /usr/include/plugins/add_fileformat.h:50:8: error: ‘CImg’ does not name a type 50 | static CImg get_load_foo(const char *filename) { | ^~~~ /usr/include/plugins/add_fileformat.h:55:1: error: ‘CImg’ does not name a type 55 | CImg& load_foo(const char *filename) { | ^~~~ /usr/include/plugins/add_fileformat.h:61:7: error: ‘CImg’ does not name a type 61 | const CImg& save_foo(const char *filename) const { | ^~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:14: /usr/include/plugins/bayer.h:46:1: error: ‘CImg’ does not name a type 46 | CImg& RGBtoBayer() { | ^~~~ /usr/include/plugins/bayer.h:51:1: error: ‘CImg’ does not name a type 51 | CImg get_RGBtoBayer() const { | ^~~~ /usr/include/plugins/bayer.h:74:1: error: ‘CImg’ does not name a type 74 | CImg& BayertoRGB(const unsigned int interpolation_type=3) { | ^~~~ /usr/include/plugins/bayer.h:79:1: error: ‘CImg’ does not name a type 79 | CImg get_BayertoRGB(const unsigned int interpolation_type=3) const { | ^~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:15: /usr/include/plugins/chlpca.h:83:1: error: ‘CImg’ does not name a type 83 | CImg get_patch(int x, int y, int z, | ^~~~ /usr/include/plugins/chlpca.h:97:1: error: ‘CImg’ does not name a type 97 | CImg get_patch_dictionnary(const int xi, const int yi, const int zi, | ^~~~ /usr/include/plugins/chlpca.h:135:1: error: ‘CImg’ does not name a type 135 | CImg & add_patch(const int xi, const int yi, const int zi, | ^~~~ /usr/include/plugins/chlpca.h:155:1: error: ‘CImg’ does not name a type 155 | CImg & add_patch(const int xi, const int yi, const int zi, const T value, | ^~~~ /usr/include/plugins/chlpca.h:179:1: error: ‘CImg’ does not name a type 179 | CImg get_chlpca(const int px, const int py, const int pz, | ^~~~ /usr/include/plugins/chlpca.h:283:1: error: ‘CImg’ does not name a type 283 | CImg & chlpca(const int px, const int py, const int pz, | ^~~~ /usr/include/plugins/chlpca.h:304:1: error: ‘CImg’ does not name a type 304 | CImg get_chlpca(const int p=3, const int w=10, | ^~~~ /usr/include/plugins/chlpca.h:314:1: error: ‘CImg’ does not name a type 314 | CImg chlpca(const int p=3, const int w=10, | ^~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:16: /usr/include/plugins/cvMat.h:25:12: error: ‘cv’ does not name a type 25 | CImg(const cv::Mat& src):_width(0),_height(0),_depth(0),_spectrum(0),_is_shared(false),_data(0) { | ^~ /usr/include/plugins/cvMat.h:25:19: error: expected unqualified-id before ‘&’ token 25 | CImg(const cv::Mat& src):_width(0),_height(0),_depth(0),_spectrum(0),_is_shared(false),_data(0) { | ^ /usr/include/plugins/cvMat.h:25:19: error: expected ‘)’ before ‘&’ token 25 | CImg(const cv::Mat& src):_width(0),_height(0),_depth(0),_spectrum(0),_is_shared(false),_data(0) { | ~ ^ | ) /usr/include/plugins/cvMat.h:25:21: error: expected constructor, destructor, or type conversion before ‘src’ 25 | CImg(const cv::Mat& src):_width(0),_height(0),_depth(0),_spectrum(0),_is_shared(false),_data(0) { | ^~~ /usr/include/plugins/cvMat.h:30:1: error: ‘CImg’ does not name a type 30 | CImg& assign(const cv::Mat & src) { | ^~~~ /usr/include/plugins/cvMat.h:302:1: error: ‘cv’ does not name a type 302 | cv::Mat get_MAT(const unsigned int z=0) const { | ^~ In file included from /tmp/ZErLHCmDd5/dump1.h:17: /usr/include/plugins/draw_gradient.h:75:6: error: variable or field ‘_draw_gradient_profile’ declared void 75 | void _draw_gradient_profile(T *const ptr, const float opacity, const float r, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/plugins/draw_gradient.h:75:29: error: ‘T’ was not declared in this scope 75 | void _draw_gradient_profile(T *const ptr, const float opacity, const float r, | ^ /usr/include/plugins/draw_gradient.h:75:32: error: expected primary-expression before ‘const’ 75 | void _draw_gradient_profile(T *const ptr, const float opacity, const float r, | ^~~~~ /usr/include/plugins/draw_gradient.h:75:43: error: expected primary-expression before ‘const’ 75 | void _draw_gradient_profile(T *const ptr, const float opacity, const float r, | ^~~~~ /usr/include/plugins/draw_gradient.h:75:64: error: expected primary-expression before ‘const’ 75 | void _draw_gradient_profile(T *const ptr, const float opacity, const float r, | ^~~~~ /usr/include/plugins/draw_gradient.h:76:29: error: expected primary-expression before ‘const’ 76 | const tc *const color0, const tc *const color1, | ^~~~~ /usr/include/plugins/draw_gradient.h:76:53: error: expected primary-expression before ‘const’ 76 | const tc *const color0, const tc *const color1, | ^~~~~ /usr/include/plugins/draw_gradient.h:77:29: error: expected primary-expression before ‘const’ 77 | const int profile) { | ^~~~~ /usr/include/plugins/draw_gradient.h:175:1: error: ‘CImg’ does not name a type 175 | CImg& draw_gradient(const int x0, const int y0, const int x1, const int y1, | ^~~~ /usr/include/plugins/draw_gradient.h:254:1: error: ‘CImg’ does not name a type 254 | CImg& draw_gradient(const int x0, const int y0, const int x1, const int y1, | ^~~~ /usr/include/plugins/draw_gradient.h:262:1: error: ‘CImg’ does not name a type 262 | CImg& draw_gradient(const int x0, const int y0, const int x1, const int y1, | ^~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:18: /usr/include/plugins/inpaint.h:59:1: error: ‘CImg’ does not name a type 59 | CImg& inpaint_patch(const CImg& mask, const unsigned int patch_size=11, | ^~~~ /usr/include/plugins/inpaint.h:476:1: error: ‘CImg’ does not name a type 476 | CImg _inpaint_patch_crop(const int x0, const int y0, const int x1, const int y1, | ^~~~ /usr/include/plugins/inpaint.h:490:1: error: ‘CImg’ does not name a type 490 | CImg get_inpaint_patch(const CImg& mask, const unsigned int patch_size=11, | ^~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:19: /usr/include/plugins/ipl.h:162:30: error: ‘IplImage’ does not name a type; did you mean ‘XImage’? 162 | bool not_pixel_type_of(const IplImage *const img) const { | ^~~~~~~~ | XImage /usr/include/plugins/ipl.h:162:51: error: non-member function ‘bool not_pixel_type_of(const int*)’ cannot have cv-qualifier 162 | bool not_pixel_type_of(const IplImage *const img) const { | ^~~~~ /usr/include/plugins/ipl.h: In function ‘bool not_pixel_type_of(const int*)’: /usr/include/plugins/ipl.h:164:31: error: request for member ‘depth’ in ‘*(const int*)img’, which is of non-class type ‘const int’ 164 | return (((unsigned int)img->depth == IPL_DEPTH_8U && typeid(T) != typeid(unsigned char)) || | ^~~~~ /usr/include/plugins/ipl.h:164:40: error: ‘IPL_DEPTH_8U’ was not declared in this scope 164 | return (((unsigned int)img->depth == IPL_DEPTH_8U && typeid(T) != typeid(unsigned char)) || | ^~~~~~~~~~~~ /usr/include/plugins/ipl.h:164:64: error: ‘T’ was not declared in this scope 164 | return (((unsigned int)img->depth == IPL_DEPTH_8U && typeid(T) != typeid(unsigned char)) || | ^ /usr/include/plugins/ipl.h:165:31: error: request for member ‘depth’ in ‘*(const int*)img’, which is of non-class type ‘const int’ 165 | ((unsigned int)img->depth == IPL_DEPTH_8S && typeid(T) != typeid(char)) || | ^~~~~ /usr/include/plugins/ipl.h:165:40: error: ‘IPL_DEPTH_8S’ was not declared in this scope 165 | ((unsigned int)img->depth == IPL_DEPTH_8S && typeid(T) != typeid(char)) || | ^~~~~~~~~~~~ /usr/include/plugins/ipl.h:166:31: error: request for member ‘depth’ in ‘*(const int*)img’, which is of non-class type ‘const int’ 166 | ((unsigned int)img->depth == IPL_DEPTH_16U && typeid(T) != typeid(unsigned short)) || | ^~~~~ /usr/include/plugins/ipl.h:166:40: error: ‘IPL_DEPTH_16U’ was not declared in this scope 166 | ((unsigned int)img->depth == IPL_DEPTH_16U && typeid(T) != typeid(unsigned short)) || | ^~~~~~~~~~~~~ /usr/include/plugins/ipl.h:167:31: error: request for member ‘depth’ in ‘*(const int*)img’, which is of non-class type ‘const int’ 167 | ((unsigned int)img->depth == IPL_DEPTH_16S && typeid(T) != typeid(unsigned)) || | ^~~~~ /usr/include/plugins/ipl.h:167:40: error: ‘IPL_DEPTH_16S’ was not declared in this scope 167 | ((unsigned int)img->depth == IPL_DEPTH_16S && typeid(T) != typeid(unsigned)) || | ^~~~~~~~~~~~~ /usr/include/plugins/ipl.h:168:31: error: request for member ‘depth’ in ‘*(const int*)img’, which is of non-class type ‘const int’ 168 | ((unsigned int)img->depth == IPL_DEPTH_32S && typeid(T) != typeid(int)) || | ^~~~~ /usr/include/plugins/ipl.h:168:40: error: ‘IPL_DEPTH_32S’ was not declared in this scope 168 | ((unsigned int)img->depth == IPL_DEPTH_32S && typeid(T) != typeid(int)) || | ^~~~~~~~~~~~~ /usr/include/plugins/ipl.h:169:31: error: request for member ‘depth’ in ‘*(const int*)img’, which is of non-class type ‘const int’ 169 | ((unsigned int)img->depth == IPL_DEPTH_32F && typeid(T) != typeid(float)) || | ^~~~~ /usr/include/plugins/ipl.h:169:40: error: ‘IPL_DEPTH_32F’ was not declared in this scope 169 | ((unsigned int)img->depth == IPL_DEPTH_32F && typeid(T) != typeid(float)) || | ^~~~~~~~~~~~~ /usr/include/plugins/ipl.h:170:31: error: request for member ‘depth’ in ‘*(const int*)img’, which is of non-class type ‘const int’ 170 | ((unsigned int)img->depth == IPL_DEPTH_64F && typeid(T) != typeid(double))); | ^~~~~ /usr/include/plugins/ipl.h:170:40: error: ‘IPL_DEPTH_64F’ was not declared in this scope 170 | ((unsigned int)img->depth == IPL_DEPTH_64F && typeid(T) != typeid(double))); | ^~~~~~~~~~~~~ /usr/include/plugins/ipl.h: At global scope: /usr/include/plugins/ipl.h:174:25: error: non-member function ‘int get_ipl_bit_depth()’ cannot have cv-qualifier 174 | int get_ipl_bit_depth() const { | ^~~~~ /usr/include/plugins/ipl.h: In function ‘int get_ipl_bit_depth()’: /usr/include/plugins/ipl.h:176:14: error: ‘T’ was not declared in this scope 176 | if (typeid(T) == typeid(unsigned char)) return IPL_DEPTH_8U; | ^ /usr/include/plugins/ipl.h:176:51: error: ‘IPL_DEPTH_8U’ was not declared in this scope 176 | if (typeid(T) == typeid(unsigned char)) return IPL_DEPTH_8U; | ^~~~~~~~~~~~ /usr/include/plugins/ipl.h:177:14: error: ‘T’ was not declared in this scope 177 | if (typeid(T) == typeid(char)) return IPL_DEPTH_8S; | ^ /usr/include/plugins/ipl.h:177:51: error: ‘IPL_DEPTH_8S’ was not declared in this scope 177 | if (typeid(T) == typeid(char)) return IPL_DEPTH_8S; | ^~~~~~~~~~~~ /usr/include/plugins/ipl.h:178:14: error: ‘T’ was not declared in this scope 178 | if (typeid(T) == typeid(unsigned short)) return IPL_DEPTH_16U; | ^ /usr/include/plugins/ipl.h:178:51: error: ‘IPL_DEPTH_16U’ was not declared in this scope 178 | if (typeid(T) == typeid(unsigned short)) return IPL_DEPTH_16U; | ^~~~~~~~~~~~~ /usr/include/plugins/ipl.h:179:14: error: ‘T’ was not declared in this scope 179 | if (typeid(T) == typeid(short)) return IPL_DEPTH_16S; | ^ /usr/include/plugins/ipl.h:179:51: error: ‘IPL_DEPTH_16S’ was not declared in this scope 179 | if (typeid(T) == typeid(short)) return IPL_DEPTH_16S; | ^~~~~~~~~~~~~ /usr/include/plugins/ipl.h:180:14: error: ‘T’ was not declared in this scope 180 | if (typeid(T) == typeid(int)) return IPL_DEPTH_32S; | ^ /usr/include/plugins/ipl.h:180:51: error: ‘IPL_DEPTH_32S’ was not declared in this scope 180 | if (typeid(T) == typeid(int)) return IPL_DEPTH_32S; | ^~~~~~~~~~~~~ /usr/include/plugins/ipl.h:181:14: error: ‘T’ was not declared in this scope 181 | if (typeid(T) == typeid(float)) return IPL_DEPTH_32F; | ^ /usr/include/plugins/ipl.h:181:51: error: ‘IPL_DEPTH_32F’ was not declared in this scope 181 | if (typeid(T) == typeid(float)) return IPL_DEPTH_32F; | ^~~~~~~~~~~~~ /usr/include/plugins/ipl.h:182:14: error: ‘T’ was not declared in this scope 182 | if (typeid(T) == typeid(double)) return IPL_DEPTH_64F; | ^ /usr/include/plugins/ipl.h:182:51: error: ‘IPL_DEPTH_64F’ was not declared in this scope 182 | if (typeid(T) == typeid(double)) return IPL_DEPTH_64F; | ^~~~~~~~~~~~~ /usr/include/plugins/ipl.h: At global scope: /usr/include/plugins/ipl.h:193:12: error: ‘IplImage’ does not name a type; did you mean ‘XImage’? 193 | CImg(const IplImage *const img, const int flag=0): | ^~~~~~~~ | XImage /usr/include/plugins/ipl.h: In function ‘int CImg(const int*, int)’: /usr/include/plugins/ipl.h:194:1: error: only constructors take member initializers 194 | _width(0),_height(0),_depth(0),_spectrum(0),_is_shared(false),_data(0) { | ^~~~~~ /usr/include/plugins/ipl.h:195:3: error: ‘assign’ was not declared in this scope; did you mean ‘asin’? 195 | assign(img,flag); | ^~~~~~ | asin /usr/include/plugins/ipl.h: At global scope: /usr/include/plugins/ipl.h:201:1: error: ‘CImg’ does not name a type 201 | CImg & assign(const IplImage *const img, const int flag=CV_CVTIMG_SWAP_RB) { | ^~~~ /usr/include/plugins/ipl.h:251:1: error: ‘IplImage’ does not name a type; did you mean ‘XImage’? 251 | IplImage* get_IplImage(const int flag=CV_CVTIMG_SWAP_RB, const unsigned z=0) const { | ^~~~~~~~ | XImage In file included from /tmp/ZErLHCmDd5/dump1.h:20: /usr/include/plugins/ipl_alt.h:50:12: error: ‘IplImage’ does not name a type; did you mean ‘XImage’? 50 | CImg(const IplImage* src):_width(0),_height(0),_depth(0),_spectrum(0),_is_shared(false),_data(0) { | ^~~~~~~~ | XImage /usr/include/plugins/ipl_alt.h: In function ‘int CImg(const int*)’: /usr/include/plugins/ipl_alt.h:50:27: error: only constructors take member initializers 50 | CImg(const IplImage* src):_width(0),_height(0),_depth(0),_spectrum(0),_is_shared(false),_data(0) { | ^~~~~~ /usr/include/plugins/ipl_alt.h:51:3: error: ‘assign’ was not declared in this scope; did you mean ‘asin’? 51 | assign(src); | ^~~~~~ | asin /usr/include/plugins/ipl_alt.h: At global scope: /usr/include/plugins/ipl_alt.h:55:1: error: ‘CImg’ does not name a type 55 | CImg& assign(const IplImage* src) { | ^~~~ /usr/include/plugins/ipl_alt.h:104:1: error: ‘IplImage’ does not name a type; did you mean ‘XImage’? 104 | IplImage* get_IPL(const unsigned int z=0) const { | ^~~~~~~~ | XImage In file included from /tmp/ZErLHCmDd5/dump1.h:21: /usr/include/plugins/jpeg_buffer.h:74:26: error: field ‘pub’ has incomplete type ‘jpeg_source_mgr’ 74 | struct jpeg_source_mgr pub; // Public fields | ^~~ /usr/include/plugins/jpeg_buffer.h:74:10: note: forward declaration of ‘struct jpeg_source_mgr’ 74 | struct jpeg_source_mgr pub; // Public fields | ^~~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:76:3: error: ‘JOCTET’ does not name a type 76 | JOCTET *inmem; // Source stream | ^~~~~~ /usr/include/plugins/jpeg_buffer.h:77:3: error: ‘JOCTET’ does not name a type 77 | JOCTET *buffer; // Start of buffer | ^~~~~~ /usr/include/plugins/jpeg_buffer.h:79:3: error: ‘boolean’ does not name a type; did you mean ‘bool’? 79 | boolean start_of_file; // Have we gotten any data yet? | ^~~~~~~ | bool /usr/include/plugins/jpeg_buffer.h:83:26: error: field ‘pub’ has incomplete type ‘jpeg_source_mgr’ 83 | struct jpeg_source_mgr pub; // public fields | ^~~ /usr/include/plugins/jpeg_buffer.h:74:10: note: forward declaration of ‘struct jpeg_source_mgr’ 74 | struct jpeg_source_mgr pub; // Public fields | ^~~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:85:3: error: ‘JOCTET’ does not name a type 85 | JOCTET *buffer; // start of buffer | ^~~~~~ /usr/include/plugins/jpeg_buffer.h:86:3: error: ‘boolean’ does not name a type; did you mean ‘bool’? 86 | boolean start_of_file; // have we gotten any data yet? | ^~~~~~~ | bool /usr/include/plugins/jpeg_buffer.h:92:8: error: ‘boolean’ does not name a type; did you mean ‘bool’? 92 | static boolean fill_minput_buffer(j_decompress_ptr cinfo) { | ^~~~~~~ | bool /usr/include/plugins/jpeg_buffer.h:106:13: error: variable or field ‘skip_minput_data’ declared void 106 | static void skip_minput_data(j_decompress_ptr cinfo, long num_bytes) { | ^~~~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:106:30: error: ‘j_decompress_ptr’ was not declared in this scope 106 | static void skip_minput_data(j_decompress_ptr cinfo, long num_bytes) { | ^~~~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:106:54: error: expected primary-expression before ‘long’ 106 | static void skip_minput_data(j_decompress_ptr cinfo, long num_bytes) { | ^~~~ /usr/include/plugins/jpeg_buffer.h:121:13: error: variable or field ‘init_msource’ declared void 121 | static void init_msource(j_decompress_ptr cinfo) { | ^~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:121:26: error: ‘j_decompress_ptr’ was not declared in this scope 121 | static void init_msource(j_decompress_ptr cinfo) { | ^~~~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:126:13: error: variable or field ‘term_source’ declared void 126 | static void term_source(j_decompress_ptr) { | ^~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:126:25: error: ‘j_decompress_ptr’ was not declared in this scope 126 | static void term_source(j_decompress_ptr) { | ^~~~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:130:13: error: variable or field ‘jpeg_mem_src’ declared void 130 | static void jpeg_mem_src(j_decompress_ptr cinfo, JOCTET * memptr,int lenght) { | ^~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:130:26: error: ‘j_decompress_ptr’ was not declared in this scope 130 | static void jpeg_mem_src(j_decompress_ptr cinfo, JOCTET * memptr,int lenght) { | ^~~~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:130:50: error: ‘JOCTET’ was not declared in this scope 130 | static void jpeg_mem_src(j_decompress_ptr cinfo, JOCTET * memptr,int lenght) { | ^~~~~~ /usr/include/plugins/jpeg_buffer.h:130:59: error: ‘memptr’ was not declared in this scope; did you mean ‘memchr’? 130 | static void jpeg_mem_src(j_decompress_ptr cinfo, JOCTET * memptr,int lenght) { | ^~~~~~ | memchr /usr/include/plugins/jpeg_buffer.h:130:66: error: expected primary-expression before ‘int’ 130 | static void jpeg_mem_src(j_decompress_ptr cinfo, JOCTET * memptr,int lenght) { | ^~~ /usr/include/plugins/jpeg_buffer.h:167:31: error: field ‘pub’ has incomplete type ‘jpeg_destination_mgr’ 167 | struct jpeg_destination_mgr pub; | ^~~ /usr/include/plugins/jpeg_buffer.h:167:10: note: forward declaration of ‘struct jpeg_destination_mgr’ 167 | struct jpeg_destination_mgr pub; | ^~~~~~~~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:168:3: error: ‘JOCTET’ does not name a type 168 | JOCTET *buf; | ^~~~~~ /usr/include/plugins/jpeg_buffer.h:175:13: error: variable or field ‘init_destination’ declared void 175 | static void init_destination(j_compress_ptr cinfo) { | ^~~~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:175:30: error: ‘j_compress_ptr’ was not declared in this scope 175 | static void init_destination(j_compress_ptr cinfo) { | ^~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:182:8: error: ‘boolean’ does not name a type; did you mean ‘bool’? 182 | static boolean empty_output_buffer(j_compress_ptr cinfo) { | ^~~~~~~ | bool /usr/include/plugins/jpeg_buffer.h:190:13: error: variable or field ‘term_destination’ declared void 190 | static void term_destination(j_compress_ptr cinfo) { | ^~~~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:190:30: error: ‘j_compress_ptr’ was not declared in this scope 190 | static void term_destination(j_compress_ptr cinfo) { | ^~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:195:13: error: variable or field ‘jpeg_mem_dest’ declared void 195 | static void jpeg_mem_dest(j_compress_ptr cinfo, JOCTET* buf, size_t bufsize) { | ^~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:195:27: error: ‘j_compress_ptr’ was not declared in this scope 195 | static void jpeg_mem_dest(j_compress_ptr cinfo, JOCTET* buf, size_t bufsize) { | ^~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:195:49: error: ‘JOCTET’ was not declared in this scope 195 | static void jpeg_mem_dest(j_compress_ptr cinfo, JOCTET* buf, size_t bufsize) { | ^~~~~~ /usr/include/plugins/jpeg_buffer.h:195:57: error: ‘buf’ was not declared in this scope 195 | static void jpeg_mem_dest(j_compress_ptr cinfo, JOCTET* buf, size_t bufsize) { | ^~~ /usr/include/plugins/jpeg_buffer.h:195:69: error: expected primary-expression before ‘bufsize’ 195 | static void jpeg_mem_dest(j_compress_ptr cinfo, JOCTET* buf, size_t bufsize) { | ^~~~~~~ /usr/include/plugins/jpeg_buffer.h:210:31: error: ‘j_compress_ptr’ was not declared in this scope 210 | static unsigned jpeg_mem_size(j_compress_ptr cinfo) { | ^~~~~~~~~~~~~~ /usr/include/plugins/jpeg_buffer.h:227:8: error: ‘CImg’ does not name a type 227 | static CImg get_load_jpeg_buffer(const JOCTET *const buffer, const unsigned buffer_size) { | ^~~~ /usr/include/plugins/jpeg_buffer.h:288:1: error: ‘CImg’ does not name a type 288 | CImg& load_jpeg_buffer(const JOCTET *const buffer, const unsigned buffer_size) { | ^~~~ /usr/include/plugins/jpeg_buffer.h:299:7: error: ‘CImg’ does not name a type 299 | const CImg& save_jpeg_buffer(JOCTET *const buffer, unsigned int &buffer_size, const int quality=100) const { | ^~~~ /usr/include/plugins/matlab.h:92:1: error: expected unqualified-id before ‘private’ 92 | private: | ^~~~~~~ /usr/include/plugins/matlab.h:122:36: error: ‘mxArray’ does not name a type 122 | void makeImageFromMatlabData(const mxArray *matlabArray, mxClassID classID) { | ^~~~~~~ /usr/include/plugins/matlab.h:122:58: error: ‘mxClassID’ has not been declared 122 | void makeImageFromMatlabData(const mxArray *matlabArray, mxClassID classID) { | ^~~~~~~~~ /usr/include/plugins/matlab.h: In function ‘void makeImageFromMatlabData(const int*, int)’: /usr/include/plugins/matlab.h:123:16: error: ‘mxLOGICAL_CLASS’ was not declared in this scope 123 | if (classID==mxLOGICAL_CLASS) { | ^~~~~~~~~~~~~~~ /usr/include/plugins/matlab.h:125:5: error: ‘mxLogical’ was not declared in this scope 125 | mxLogical *mdata = mxGetLogicals(matlabArray); | ^~~~~~~~~ /usr/include/plugins/matlab.h:125:16: error: ‘mdata’ was not declared in this scope 125 | mxLogical *mdata = mxGetLogicals(matlabArray); | ^~~~~ /usr/include/plugins/matlab.h:125:24: error: ‘mxGetLogicals’ was not declared in this scope 125 | mxLogical *mdata = mxGetLogicals(matlabArray); | ^~~~~~~~~~~~~ /usr/include/plugins/matlab.h:126:19: error: expected primary-expression before ‘const’ 126 | cpMatlabData((const mxLogical *)mdata); | ^~~~~ /usr/include/plugins/matlab.h:126:19: error: expected ‘)’ before ‘const’ 126 | cpMatlabData((const mxLogical *)mdata); | ~^~~~~ | ) /usr/include/plugins/matlab.h:128:26: error: ‘mxGetPr’ was not declared in this scope 128 | void *mdata = (void*)mxGetPr(matlabArray); | ^~~~~~~ /usr/include/plugins/matlab.h:130:10: error: ‘mxDOUBLE_CLASS’ was not declared in this scope 130 | case mxDOUBLE_CLASS : cpMatlabData((const real64_T*)mdata); break; | ^~~~~~~~~~~~~~ /usr/include/plugins/matlab.h:130:41: error: expected primary-expression before ‘const’ 130 | case mxDOUBLE_CLASS : cpMatlabData((const real64_T*)mdata); break; | ^~~~~ /usr/include/plugins/matlab.h:130:41: error: expected ‘)’ before ‘const’ 130 | case mxDOUBLE_CLASS : cpMatlabData((const real64_T*)mdata); break; | ~^~~~~ | ) /usr/include/plugins/matlab.h:131:10: error: ‘mxSINGLE_CLASS’ was not declared in this scope 131 | case mxSINGLE_CLASS : cpMatlabData((const real32_T*)mdata); break; | ^~~~~~~~~~~~~~ /usr/include/plugins/matlab.h:131:41: error: expected primary-expression before ‘const’ 131 | case mxSINGLE_CLASS : cpMatlabData((const real32_T*)mdata); break; | ^~~~~ /usr/include/plugins/matlab.h:131:41: error: expected ‘)’ before ‘const’ 131 | case mxSINGLE_CLASS : cpMatlabData((const real32_T*)mdata); break; | ~^~~~~ | ) /usr/include/plugins/matlab.h:132:10: error: ‘mxINT8_CLASS’ was not declared in this scope 132 | case mxINT8_CLASS : cpMatlabData((const int8_T*)mdata); break; | ^~~~~~~~~~~~ /usr/include/plugins/matlab.h:132:39: error: expected primary-expression before ‘const’ 132 | case mxINT8_CLASS : cpMatlabData((const int8_T*)mdata); break; | ^~~~~ /usr/include/plugins/matlab.h:132:39: error: expected ‘)’ before ‘const’ 132 | case mxINT8_CLASS : cpMatlabData((const int8_T*)mdata); break; | ~^~~~~ | ) /usr/include/plugins/matlab.h:133:10: error: ‘mxUINT8_CLASS’ was not declared in this scope 133 | case mxUINT8_CLASS : cpMatlabData((const uint8_T*)mdata); break; | ^~~~~~~~~~~~~ /usr/include/plugins/matlab.h:133:40: error: expected primary-expression before ‘const’ 133 | case mxUINT8_CLASS : cpMatlabData((const uint8_T*)mdata); break; | ^~~~~ /usr/include/plugins/matlab.h:133:40: error: expected ‘)’ before ‘const’ 133 | case mxUINT8_CLASS : cpMatlabData((const uint8_T*)mdata); break; | ~^~~~~ | ) /usr/include/plugins/matlab.h:134:10: error: ‘mxINT16_CLASS’ was not declared in this scope 134 | case mxINT16_CLASS : cpMatlabData((const int16_T*)mdata); break; | ^~~~~~~~~~~~~ /usr/include/plugins/matlab.h:134:40: error: expected primary-expression before ‘const’ 134 | case mxINT16_CLASS : cpMatlabData((const int16_T*)mdata); break; | ^~~~~ /usr/include/plugins/matlab.h:134:40: error: expected ‘)’ before ‘const’ 134 | case mxINT16_CLASS : cpMatlabData((const int16_T*)mdata); break; | ~^~~~~ | ) /usr/include/plugins/matlab.h:135:10: error: ‘mxUINT16_CLASS’ was not declared in this scope 135 | case mxUINT16_CLASS : cpMatlabData((const uint16_T*)mdata); break; | ^~~~~~~~~~~~~~ /usr/include/plugins/matlab.h:135:41: error: expected primary-expression before ‘const’ 135 | case mxUINT16_CLASS : cpMatlabData((const uint16_T*)mdata); break; | ^~~~~ /usr/include/plugins/matlab.h:135:41: error: expected ‘)’ before ‘const’ 135 | case mxUINT16_CLASS : cpMatlabData((const uint16_T*)mdata); break; | ~^~~~~ | ) /usr/include/plugins/matlab.h:136:10: error: ‘mxINT32_CLASS’ was not declared in this scope 136 | case mxINT32_CLASS : cpMatlabData((const int32_T*)mdata); break; | ^~~~~~~~~~~~~ /usr/include/plugins/matlab.h:136:40: error: expected primary-expression before ‘const’ 136 | case mxINT32_CLASS : cpMatlabData((const int32_T*)mdata); break; | ^~~~~ /usr/include/plugins/matlab.h:136:40: error: expected ‘)’ before ‘const’ 136 | case mxINT32_CLASS : cpMatlabData((const int32_T*)mdata); break; | ~^~~~~ | ) /usr/include/plugins/matlab.h:137:10: error: ‘mxUINT32_CLASS’ was not declared in this scope 137 | case mxUINT32_CLASS : cpMatlabData((const uint32_T*)mdata); break; | ^~~~~~~~~~~~~~ /usr/include/plugins/matlab.h:137:41: error: expected primary-expression before ‘const’ 137 | case mxUINT32_CLASS : cpMatlabData((const uint32_T*)mdata); break; | ^~~~~ /usr/include/plugins/matlab.h:137:41: error: expected ‘)’ before ‘const’ 137 | case mxUINT32_CLASS : cpMatlabData((const uint32_T*)mdata); break; | ~^~~~~ | ) /usr/include/plugins/matlab.h:138:10: error: ‘mxINT64_CLASS’ was not declared in this scope 138 | case mxINT64_CLASS : cpMatlabData((const int64_T*)mdata); break; | ^~~~~~~~~~~~~ /usr/include/plugins/matlab.h:138:40: error: expected primary-expression before ‘const’ 138 | case mxINT64_CLASS : cpMatlabData((const int64_T*)mdata); break; | ^~~~~ /usr/include/plugins/matlab.h:138:40: error: expected ‘)’ before ‘const’ 138 | case mxINT64_CLASS : cpMatlabData((const int64_T*)mdata); break; | ~^~~~~ | ) /usr/include/plugins/matlab.h:139:10: error: ‘mxUINT64_CLASS’ was not declared in this scope 139 | case mxUINT64_CLASS : cpMatlabData((const uint64_T*)mdata); break; | ^~~~~~~~~~~~~~ /usr/include/plugins/matlab.h:139:41: error: expected primary-expression before ‘const’ 139 | case mxUINT64_CLASS : cpMatlabData((const uint64_T*)mdata); break; | ^~~~~ /usr/include/plugins/matlab.h:139:41: error: expected ‘)’ before ‘const’ 139 | case mxUINT64_CLASS : cpMatlabData((const uint64_T*)mdata); break; | ~^~~~~ | ) /usr/include/plugins/matlab.h: In function ‘void cpMatlabData(const t*)’: /usr/include/plugins/matlab.h:152:7: error: ‘cimg’ has not been declared 152 | if (cimg::type::is_float()) { | ^~~~ /usr/include/plugins/matlab.h:152:19: error: expected primary-expression before ‘>’ token 152 | if (cimg::type::is_float()) { | ^ /usr/include/plugins/matlab.h:152:22: error: ‘::is_float’ has not been declared; did you mean ‘float’? 152 | if (cimg::type::is_float()) { | ^~~~~~~~ | float In file included from /tmp/ZErLHCmDd5/dump1.h:12: /usr/include/plugins/matlab.h:153:19: error: invalid use of ‘this’ in non-member function 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~ /usr/include/CImg.h:944:52: note: in definition of macro ‘cimg_for1’ 944 | #define cimg_for1(bound,i) for (int i = 0; i<(int)(bound); ++i) | ^~~~~ /usr/include/CImg.h:959:35: note: in expansion of macro ‘cimg_forC’ 959 | #define cimg_forXYZC(img,x,y,z,c) cimg_forC(img,c) cimg_forXYZ(img,x,y,z) | ^~~~~~~~~ /usr/include/plugins/matlab.h:153:5: note: in expansion of macro ‘cimg_forXYZC’ 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~~~~~~~ /usr/include/plugins/matlab.h:153:19: error: invalid use of ‘this’ in non-member function 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~ /usr/include/CImg.h:944:52: note: in definition of macro ‘cimg_for1’ 944 | #define cimg_for1(bound,i) for (int i = 0; i<(int)(bound); ++i) | ^~~~~ /usr/include/CImg.h:955:32: note: in expansion of macro ‘cimg_forZ’ 955 | #define cimg_forXYZ(img,x,y,z) cimg_forZ(img,z) cimg_forXY(img,x,y) | ^~~~~~~~~ /usr/include/CImg.h:959:52: note: in expansion of macro ‘cimg_forXYZ’ 959 | #define cimg_forXYZC(img,x,y,z,c) cimg_forC(img,c) cimg_forXYZ(img,x,y,z) | ^~~~~~~~~~~ /usr/include/plugins/matlab.h:153:5: note: in expansion of macro ‘cimg_forXYZC’ 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~~~~~~~ /usr/include/plugins/matlab.h:153:19: error: invalid use of ‘this’ in non-member function 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~ /usr/include/CImg.h:944:52: note: in definition of macro ‘cimg_for1’ 944 | #define cimg_for1(bound,i) for (int i = 0; i<(int)(bound); ++i) | ^~~~~ /usr/include/CImg.h:949:29: note: in expansion of macro ‘cimg_forY’ 949 | #define cimg_forXY(img,x,y) cimg_forY(img,y) cimg_forX(img,x) | ^~~~~~~~~ /usr/include/CImg.h:955:49: note: in expansion of macro ‘cimg_forXY’ 955 | #define cimg_forXYZ(img,x,y,z) cimg_forZ(img,z) cimg_forXY(img,x,y) | ^~~~~~~~~~ /usr/include/CImg.h:959:52: note: in expansion of macro ‘cimg_forXYZ’ 959 | #define cimg_forXYZC(img,x,y,z,c) cimg_forC(img,c) cimg_forXYZ(img,x,y,z) | ^~~~~~~~~~~ /usr/include/plugins/matlab.h:153:5: note: in expansion of macro ‘cimg_forXYZC’ 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~~~~~~~ /usr/include/plugins/matlab.h:153:19: error: invalid use of ‘this’ in non-member function 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~ /usr/include/CImg.h:944:52: note: in definition of macro ‘cimg_for1’ 944 | #define cimg_for1(bound,i) for (int i = 0; i<(int)(bound); ++i) | ^~~~~ /usr/include/CImg.h:949:46: note: in expansion of macro ‘cimg_forX’ 949 | #define cimg_forXY(img,x,y) cimg_forY(img,y) cimg_forX(img,x) | ^~~~~~~~~ /usr/include/CImg.h:955:49: note: in expansion of macro ‘cimg_forXY’ 955 | #define cimg_forXYZ(img,x,y,z) cimg_forZ(img,z) cimg_forXY(img,x,y) | ^~~~~~~~~~ /usr/include/CImg.h:959:52: note: in expansion of macro ‘cimg_forXYZ’ 959 | #define cimg_forXYZC(img,x,y,z,c) cimg_forC(img,c) cimg_forXYZ(img,x,y,z) | ^~~~~~~~~~~ /usr/include/plugins/matlab.h:153:5: note: in expansion of macro ‘cimg_forXYZC’ 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~~~~~~~ /usr/include/plugins/matlab.h:153:35: error: invalid use of ‘this’ in non-member function 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~ /usr/include/plugins/matlab.h:153:53: error: ‘T’ was not declared in this scope 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^ /usr/include/plugins/matlab.h:153:66: error: ‘_depth’ was not declared in this scope; did you mean ‘Depth’? 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~ | Depth /usr/include/plugins/matlab.h:153:78: error: ‘_width’ was not declared in this scope 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~ /usr/include/plugins/matlab.h:153:90: error: ‘_height’ was not declared in this scope 153 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~~ /usr/include/plugins/matlab.h:155:19: error: invalid use of ‘this’ in non-member function 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~ /usr/include/CImg.h:944:52: note: in definition of macro ‘cimg_for1’ 944 | #define cimg_for1(bound,i) for (int i = 0; i<(int)(bound); ++i) | ^~~~~ /usr/include/CImg.h:959:35: note: in expansion of macro ‘cimg_forC’ 959 | #define cimg_forXYZC(img,x,y,z,c) cimg_forC(img,c) cimg_forXYZ(img,x,y,z) | ^~~~~~~~~ /usr/include/plugins/matlab.h:155:5: note: in expansion of macro ‘cimg_forXYZC’ 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~~~~~~~ /usr/include/plugins/matlab.h:155:19: error: invalid use of ‘this’ in non-member function 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~ /usr/include/CImg.h:944:52: note: in definition of macro ‘cimg_for1’ 944 | #define cimg_for1(bound,i) for (int i = 0; i<(int)(bound); ++i) | ^~~~~ /usr/include/CImg.h:955:32: note: in expansion of macro ‘cimg_forZ’ 955 | #define cimg_forXYZ(img,x,y,z) cimg_forZ(img,z) cimg_forXY(img,x,y) | ^~~~~~~~~ /usr/include/CImg.h:959:52: note: in expansion of macro ‘cimg_forXYZ’ 959 | #define cimg_forXYZC(img,x,y,z,c) cimg_forC(img,c) cimg_forXYZ(img,x,y,z) | ^~~~~~~~~~~ /usr/include/plugins/matlab.h:155:5: note: in expansion of macro ‘cimg_forXYZC’ 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~~~~~~~ /usr/include/plugins/matlab.h:155:19: error: invalid use of ‘this’ in non-member function 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~ /usr/include/CImg.h:944:52: note: in definition of macro ‘cimg_for1’ 944 | #define cimg_for1(bound,i) for (int i = 0; i<(int)(bound); ++i) | ^~~~~ /usr/include/CImg.h:949:29: note: in expansion of macro ‘cimg_forY’ 949 | #define cimg_forXY(img,x,y) cimg_forY(img,y) cimg_forX(img,x) | ^~~~~~~~~ /usr/include/CImg.h:955:49: note: in expansion of macro ‘cimg_forXY’ 955 | #define cimg_forXYZ(img,x,y,z) cimg_forZ(img,z) cimg_forXY(img,x,y) | ^~~~~~~~~~ /usr/include/CImg.h:959:52: note: in expansion of macro ‘cimg_forXYZ’ 959 | #define cimg_forXYZC(img,x,y,z,c) cimg_forC(img,c) cimg_forXYZ(img,x,y,z) | ^~~~~~~~~~~ /usr/include/plugins/matlab.h:155:5: note: in expansion of macro ‘cimg_forXYZC’ 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~~~~~~~ /usr/include/plugins/matlab.h:155:19: error: invalid use of ‘this’ in non-member function 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~ /usr/include/CImg.h:944:52: note: in definition of macro ‘cimg_for1’ 944 | #define cimg_for1(bound,i) for (int i = 0; i<(int)(bound); ++i) | ^~~~~ /usr/include/CImg.h:949:46: note: in expansion of macro ‘cimg_forX’ 949 | #define cimg_forXY(img,x,y) cimg_forY(img,y) cimg_forX(img,x) | ^~~~~~~~~ /usr/include/CImg.h:955:49: note: in expansion of macro ‘cimg_forXY’ 955 | #define cimg_forXYZ(img,x,y,z) cimg_forZ(img,z) cimg_forXY(img,x,y) | ^~~~~~~~~~ /usr/include/CImg.h:959:52: note: in expansion of macro ‘cimg_forXYZ’ 959 | #define cimg_forXYZC(img,x,y,z,c) cimg_forC(img,c) cimg_forXYZ(img,x,y,z) | ^~~~~~~~~~~ /usr/include/plugins/matlab.h:155:5: note: in expansion of macro ‘cimg_forXYZC’ 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~~~~~~~ /usr/include/plugins/matlab.h:155:35: error: invalid use of ‘this’ in non-member function 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~ /usr/include/plugins/matlab.h:155:53: error: ‘T’ was not declared in this scope 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^ /usr/include/plugins/matlab.h:155:56: error: expected primary-expression before ‘int’ 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~ /usr/include/plugins/matlab.h:155:71: error: ‘_depth’ was not declared in this scope; did you mean ‘Depth’? 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~ | Depth /usr/include/plugins/matlab.h:155:83: error: ‘_width’ was not declared in this scope 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~ /usr/include/plugins/matlab.h:155:95: error: ‘_height’ was not declared in this scope 155 | cimg_forXYZC(*this,x,y,z,v) (*this)(x,y,z,v) = (T)(int)(mdata[((v*_depth + z)*_width + x)*_height + y]); | ^~~~~~~ /usr/include/plugins/matlab.h: At global scope: /usr/include/plugins/matlab.h:159:1: error: expected unqualified-id before ‘public’ 159 | public: | ^~~~~~ /usr/include/plugins/matlab.h:201:1: error: ‘CImg’ does not name a type 201 | CImg & operator=(const mxArray *matlabArray) { | ^~~~ /usr/include/plugins/matlab.h:224:1: error: expected unqualified-id before ‘private’ 224 | private: | ^~~~~~~ /usr/include/plugins/matlab.h:238:6: error: variable or field ‘populate_maltlab_array’ declared void 238 | void populate_maltlab_array(mxLogical *const mdata) const { | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/plugins/matlab.h:238:29: error: ‘mxLogical’ was not declared in this scope 238 | void populate_maltlab_array(mxLogical *const mdata) const { | ^~~~~~~~~ /usr/include/plugins/matlab.h:238:40: error: expected primary-expression before ‘const’ 238 | void populate_maltlab_array(mxLogical *const mdata) const { | ^~~~~ /usr/include/plugins/matlab.h:242:1: error: expected unqualified-id before ‘public’ 242 | public: | ^~~~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:24: /usr/include/plugins/nlmeans.h:61:1: error: ‘CImg’ does not name a type 61 | CImg& nlmeans(int patch_size=1, double lambda=-1, double alpha=3, double sigma=-1, int sampling=1){ | ^~~~ /usr/include/plugins/nlmeans.h:238:1: error: ‘CImg’ does not name a type 238 | CImg get_nlmeans( int patch_size=1, double lambda=-1, double alpha=3 ,double sigma=-1, int sampling=1) const { | ^~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:25: /usr/include/plugins/skeleton.h:61:1: error: ‘CImg’ does not name a type 61 | CImg get_flux(const CImgList & grad, | ^~~~ /usr/include/plugins/skeleton.h:144:1: error: ‘CImg’ does not name a type 144 | CImg get_logdensity(const CImg & dist, | ^~~~ /usr/include/plugins/skeleton.h:190:1: error: ‘CImg’ does not name a type 190 | CImg get_corrected_flux(const CImg & logdensity, | ^~~~ /usr/include/plugins/skeleton.h:220:23: error: ‘CImg’ does not name a type 220 | bool _isSimple (const CImg & img, int x, int y, int z ) const { | ^~~~ /usr/include/plugins/skeleton.h:220:27: error: expected ‘,’ or ‘...’ before ‘<’ token 220 | bool _isSimple (const CImg & img, int x, int y, int z ) const { | ^ /usr/include/plugins/skeleton.h:220:60: error: non-member function ‘bool _isSimple(int)’ cannot have cv-qualifier 220 | bool _isSimple (const CImg & img, int x, int y, int z ) const { | ^~~~~ /usr/include/plugins/skeleton.h: In function ‘bool _isSimple(int)’: /usr/include/plugins/skeleton.h:221:7: error: ‘img’ was not declared in this scope 221 | if (img.depth()==1) { // 2D case | ^~~ /usr/include/plugins/skeleton.h:227:13: error: ‘x’ was not declared in this scope 227 | if (x+k<0 || x+k>=img.width() || y+l<0 || y+l>=img.height()) continue; | ^ /usr/include/plugins/skeleton.h:227:42: error: ‘y’ was not declared in this scope 227 | if (x+k<0 || x+k>=img.width() || y+l<0 || y+l>=img.height()) continue; | ^ /usr/include/plugins/skeleton.h:230:17: error: ‘x’ was not declared in this scope 230 | if (img(x + k,y + l)!=0 && !(k==0 && l==0)) { | ^ /usr/include/plugins/skeleton.h:230:23: error: ‘y’ was not declared in this scope 230 | if (img(x + k,y + l)!=0 && !(k==0 && l==0)) { | ^ /usr/include/plugins/skeleton.h:247:9: error: ‘x’ was not declared in this scope 247 | if (x - 1>=0 && y - 1>=0 && img(x - 1,y - 1)!=0 && img(x,y - 1)!=0 && img(x - 1,y)!=0) E-=2; | ^ /usr/include/plugins/skeleton.h:247:21: error: ‘y’ was not declared in this scope 247 | if (x - 1>=0 && y - 1>=0 && img(x - 1,y - 1)!=0 && img(x,y - 1)!=0 && img(x - 1,y)!=0) E-=2; | ^ /usr/include/plugins/skeleton.h:248:9: error: ‘x’ was not declared in this scope 248 | if (x - 1>=0 && y + 1=0 && y + 1=0 && img(x + 1,y - 1)!=0 && img(x,y - 1)!=0 && img(x + 1,y)!=0) E-=2; | ^ /usr/include/plugins/skeleton.h:249:30: error: ‘y’ was not declared in this scope 249 | if (x + 1=0 && img(x + 1,y - 1)!=0 && img(x,y - 1)!=0 && img(x + 1,y)!=0) E-=2; | ^ /usr/include/plugins/skeleton.h:250:9: error: ‘x’ was not declared in this scope 250 | if (x + 1 visit(3,3,3,1,0); // Visitor table | ^~~~ | int /usr/include/plugins/skeleton.h:256:16: error: ‘visit’ was not declared in this scope 256 | CImg visit(3,3,3,1,0); // Visitor table | ^~~~~ /usr/include/plugins/skeleton.h:269:15: error: ‘x’ was not declared in this scope 269 | if (x + k<0 || x + k>=img.width() || | ^ /usr/include/plugins/skeleton.h:270:15: error: ‘y’ was not declared in this scope 270 | y + l<0 || y + l>=img.height() || | ^ /usr/include/plugins/skeleton.h:271:15: error: ‘z’ was not declared in this scope 271 | z + m<0 || z + m>=img.depth() || | ^ /usr/include/plugins/skeleton.h:274:50: error: ‘x’ was not declared in this scope 274 | if (visit(1 + k,1 + l,1 + m)==0 && img(x + k,y + l,z + m)!=0) { | ^ /usr/include/plugins/skeleton.h:274:56: error: ‘y’ was not declared in this scope 274 | if (visit(1 + k,1 + l,1 + m)==0 && img(x + k,y + l,z + m)!=0) { | ^ /usr/include/plugins/skeleton.h:274:62: error: ‘z’ was not declared in this scope 274 | if (visit(1 + k,1 + l,1 + m)==0 && img(x + k,y + l,z + m)!=0) { | ^ /usr/include/plugins/skeleton.h:323:11: error: ‘x’ was not declared in this scope 323 | if (x + k<0 || x + k>=img.width()) continue; | ^ /usr/include/plugins/skeleton.h:325:15: error: ‘x’ was not declared in this scope 325 | if (img(x + k,y,z)==0 && visit(1 + k,1,1)==0) { | ^ /usr/include/plugins/skeleton.h:325:21: error: ‘y’ was not declared in this scope 325 | if (img(x + k,y,z)==0 && visit(1 + k,1,1)==0) { | ^ /usr/include/plugins/skeleton.h:325:23: error: ‘z’ was not declared in this scope 325 | if (img(x + k,y,z)==0 && visit(1 + k,1,1)==0) { | ^ /usr/include/plugins/skeleton.h:342:11: error: ‘y’ was not declared in this scope 342 | if (y + k<0 || y + k>=img.height()) continue; | ^ /usr/include/plugins/skeleton.h:344:15: error: ‘x’ was not declared in this scope 344 | if (img(x,y + k,z)==0 && visit(1,1 + k,1)==0) { | ^ /usr/include/plugins/skeleton.h:344:17: error: ‘y’ was not declared in this scope 344 | if (img(x,y + k,z)==0 && visit(1,1 + k,1)==0) { | ^ /usr/include/plugins/skeleton.h:344:23: error: ‘z’ was not declared in this scope 344 | if (img(x,y + k,z)==0 && visit(1,1 + k,1)==0) { | ^ /usr/include/plugins/skeleton.h:386:11: error: ‘z’ was not declared in this scope 386 | if (z + k<0 || z + k>=img.depth()) continue; | ^ /usr/include/plugins/skeleton.h:388:15: error: ‘x’ was not declared in this scope 388 | if (img(x,y,z + k)==0 && visit(1,1,1 + k)==0) { | ^ /usr/include/plugins/skeleton.h:388:17: error: ‘y’ was not declared in this scope 388 | if (img(x,y,z + k)==0 && visit(1,1,1 + k)==0) { | ^ /usr/include/plugins/skeleton.h:388:19: error: ‘z’ was not declared in this scope 388 | if (img(x,y,z + k)==0 && visit(1,1,1 + k)==0) { | ^ /usr/include/plugins/skeleton.h: At global scope: /usr/include/plugins/skeleton.h:443:24: error: ‘CImg’ does not name a type 443 | bool _isEndPoint(const CImg & img, const CImg & a_label, | ^~~~ /usr/include/plugins/skeleton.h:443:28: error: expected ‘,’ or ‘...’ before ‘<’ token 443 | bool _isEndPoint(const CImg & img, const CImg & a_label, | ^ /usr/include/plugins/skeleton.h:444:75: error: non-member function ‘bool _isEndPoint(int)’ cannot have cv-qualifier 444 | const bool curve, const int x, const int y, const int z) const { | ^~~~~ /usr/include/plugins/skeleton.h: In function ‘bool _isEndPoint(int)’: /usr/include/plugins/skeleton.h:445:15: error: ‘x’ was not declared in this scope 445 | if (a_label(x,y,z)==1) return true; | ^ /usr/include/plugins/skeleton.h:445:17: error: ‘y’ was not declared in this scope; did you mean ‘yn’? 445 | if (a_label(x,y,z)==1) return true; | ^ | yn /usr/include/plugins/skeleton.h:445:19: error: ‘z’ was not declared in this scope 445 | if (a_label(x,y,z)==1) return true; | ^ /usr/include/plugins/skeleton.h:445:7: error: ‘a_label’ was not declared in this scope 445 | if (a_label(x,y,z)==1) return true; | ^~~~~~~ /usr/include/plugins/skeleton.h:447:9: error: ‘curve’ was not declared in this scope 447 | if ((!curve) && (img.depth()!=1)) { // 3D case with medial surface | ^~~~~ /usr/include/plugins/skeleton.h:447:20: error: ‘img’ was not declared in this scope 447 | if ((!curve) && (img.depth()!=1)) { // 3D case with medial surface | ^~~ /usr/include/plugins/skeleton.h:466:13: error: ‘x’ was not declared in this scope 466 | if (x + plan9[k][l][0]<0 || x + plan9[k][l][0]>=img.width() || | ^ /usr/include/plugins/skeleton.h:467:13: error: ‘y’ was not declared in this scope 467 | y + plan9[k][l][1]<0 || y + plan9[k][l][1]>=img.height() || | ^ /usr/include/plugins/skeleton.h:468:13: error: ‘z’ was not declared in this scope 468 | z + plan9[k][l][2]<0 || z + plan9[k][l][2]>=img.depth()) continue; | ^ /usr/include/plugins/skeleton.h:470:17: error: ‘x’ was not declared in this scope 470 | if (img(x + plan9[k][l][0],y + plan9[k][l][1],z + plan9[k][l][2])!=0) ++count; | ^ /usr/include/plugins/skeleton.h:470:36: error: ‘y’ was not declared in this scope 470 | if (img(x + plan9[k][l][0],y + plan9[k][l][1],z + plan9[k][l][2])!=0) ++count; | ^ /usr/include/plugins/skeleton.h:470:55: error: ‘z’ was not declared in this scope 470 | if (img(x + plan9[k][l][0],y + plan9[k][l][1],z + plan9[k][l][2])!=0) ++count; | ^ /usr/include/plugins/skeleton.h:482:15: error: ‘x’ was not declared in this scope 482 | if (x + k<0 || x + k>=img.width() || | ^ /usr/include/plugins/skeleton.h:483:15: error: ‘y’ was not declared in this scope 483 | y + l<0 || y + l>=img.height() || | ^ /usr/include/plugins/skeleton.h:484:15: error: ‘z’ was not declared in this scope 484 | z + m<0 || z + m>=img.depth()) continue; | ^ /usr/include/plugins/skeleton.h:486:19: error: ‘x’ was not declared in this scope 486 | if (img(x + k,y + l,z + m)!=0) ++isb; | ^ /usr/include/plugins/skeleton.h:486:25: error: ‘y’ was not declared in this scope 486 | if (img(x + k,y + l,z + m)!=0) ++isb; | ^ /usr/include/plugins/skeleton.h:486:31: error: ‘z’ was not declared in this scope 486 | if (img(x + k,y + l,z + m)!=0) ++isb; | ^ /usr/include/plugins/skeleton.h: At global scope: /usr/include/plugins/skeleton.h:504:1: error: ‘CImg’ does not name a type 504 | CImg get_skeleton (const CImg & flux, | ^~~~ /usr/include/plugins/skeleton.h:582:1: error: ‘CImg’ does not name a type 582 | CImg skeleton(const CImg & flux, | ^~~~ /usr/include/plugins/tiff_stream.h:86:7: error: ‘CImg’ does not name a type 86 | const CImg& save_tiff(std::ostream *tiffOutStream, const unsigned int compression_type=0) const { | ^~~~ /usr/include/plugins/tiff_stream.h:126:1: error: ‘CImg’ does not name a type 126 | CImg& load_tiff(std::istream* tiffInStream, | ^~~~ /usr/include/plugins/tiff_stream.h:183:8: error: ‘CImg’ does not name a type 183 | static CImg get_load_tiff(std::istream* tiffInStream, | ^~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:27: /usr/include/plugins/tinymatwriter.h:74:7: error: ‘CImg’ does not name a type 74 | const CImg& save_tinymat(const char *filename) const { | ^~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:28: /usr/include/plugins/vrml.h:62:1: error: ‘CImg’ does not name a type 62 | CImg& load_vrml(const char *const filename, CImgList& primitives, CImgList& colors) { | ^~~~ /usr/include/plugins/vrml.h:68:8: error: ‘CImg’ does not name a type 68 | static CImg get_load_vrml(const char *const filename, CImgList& primitives, CImgList& colors) { | ^~~~ /usr/include/plugins/vrml.h:74:1: error: ‘CImg’ does not name a type 74 | CImg& load_vrml(std::FILE *const file, CImgList& primitives, CImgList& colors) { | ^~~~ /usr/include/plugins/vrml.h:80:8: error: ‘CImg’ does not name a type 80 | static CImg get_load_vrml(std::FILE *const file, CImgList& primitives, CImgList& colors) { | ^~~~ /usr/include/plugins/vrml.h:86:1: error: ‘CImg’ does not name a type 86 | CImg& _load_vrml(std::FILE *const file, const char *const filename,CImgList& primitives, CImgList& colors) { | ^~~~ /usr/include/plugins/vrml.h:725:7: error: ‘CImg’ does not name a type 725 | const CImg& save_vrml(const char *const filename,const CImgList& primitives, | ^~~~ /usr/include/plugins/vrml.h:732:7: error: ‘CImg’ does not name a type 732 | const CImg& save_vrml(std::FILE *const file,const CImgList& primitives, | ^~~~ /usr/include/plugins/vrml.h:739:7: error: ‘CImg’ does not name a type 739 | const CImg& _save_vrml(std::FILE *const file, const char *const filename, const CImgList& primitives, | ^~~~ In file included from /tmp/ZErLHCmDd5/dump1.h:29: /usr/include/plugins/vtk.h:54:3: error: ‘CImgList’ does not name a type 54 | CImgList& save_vtk(const char* const filename, | ^~~~~~~~