fork download
  1. class testWidget : public QWidget
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. testWidget(QWidget *parent =0);
  7.  
  8. string caliImgName;
  9. unsigned char caliImg[RES_1016_IMAGE_SIZE], img_ori[RES_1016_IMAGE_SIZE]={0}, img_dst[RES_1016_IMAGE_SIZE]={0};//, *img_ori, *img_dst
  10. unsigned long width, height;
  11. void imgProc();
  12.  
  13. public slots:
  14. void createFilst();
  15.  
  16. private:
  17.  
  18. void readCaliImg(string caliImgName);
  19.  
  20. QLabel *showString, *rCaliImgLOG;
  21. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:1: error: expected class-name before ‘{’ token
 {
 ^
prog.cpp:3:5: error: ‘Q_OBJECT’ does not name a type
     Q_OBJECT
     ^~~~~~~~
prog.cpp:8:5: error: ‘string’ does not name a type
     string caliImgName;
     ^~~~~~
prog.cpp:9:27: error: ‘RES_1016_IMAGE_SIZE’ was not declared in this scope
     unsigned char caliImg[RES_1016_IMAGE_SIZE], img_ori[RES_1016_IMAGE_SIZE]={0}, img_dst[RES_1016_IMAGE_SIZE]={0};//, *img_ori, *img_dst
                           ^~~~~~~~~~~~~~~~~~~
prog.cpp:9:57: error: ‘RES_1016_IMAGE_SIZE’ was not declared in this scope
     unsigned char caliImg[RES_1016_IMAGE_SIZE], img_ori[RES_1016_IMAGE_SIZE]={0}, img_dst[RES_1016_IMAGE_SIZE]={0};//, *img_ori, *img_dst
                                                         ^~~~~~~~~~~~~~~~~~~
prog.cpp:9:91: error: ‘RES_1016_IMAGE_SIZE’ was not declared in this scope
     unsigned char caliImg[RES_1016_IMAGE_SIZE], img_ori[RES_1016_IMAGE_SIZE]={0}, img_dst[RES_1016_IMAGE_SIZE]={0};//, *img_ori, *img_dst
                                                                                           ^~~~~~~~~~~~~~~~~~~
prog.cpp:13:8: error: expected ‘:’ before ‘slots’
 public slots:
        ^~~~~
prog.cpp:13:8: error: ‘slots’ does not name a type
prog.cpp:18:22: error: ‘string’ has not been declared
     void readCaliImg(string caliImgName);
                      ^~~~~~
prog.cpp:20:5: error: ‘QLabel’ does not name a type
     QLabel *showString, *rCaliImgLOG;
     ^~~~~~
stdout
Standard output is empty