prog.cpp:1:1: error: ‘testWidget’ does not name a type
testWidget::testWidget(QWidget *parent):QWidget(parent)
^~~~~~~~~~
prog.cpp:38:6: error: ‘testWidget’ has not been declared
void testWidget:: createFilst()
^~~~~~~~~~
prog.cpp: In function ‘void createFilst()’:
prog.cpp:40:1: error: ‘FILE’ was not declared in this scope
FILE *img_txt;
^~~~
prog.cpp:40:7: error: ‘img_txt’ was not declared in this scope
FILE *img_txt;
^~~~~~~
prog.cpp:41:7: error: ‘rFolderList’ was not declared in this scope
FILE *rFolderList, *rFileList, *rImg, *wImg;
^~~~~~~~~~~
prog.cpp:41:21: error: ‘rFileList’ was not declared in this scope
FILE *rFolderList, *rFileList, *rImg, *wImg;
^~~~~~~~~
prog.cpp:41:33: error: ‘rImg’ was not declared in this scope
FILE *rFolderList, *rFileList, *rImg, *wImg;
^~~~
prog.cpp:41:40: error: ‘wImg’ was not declared in this scope
FILE *rFolderList, *rFileList, *rImg, *wImg;
^~~~
prog.cpp:49:5: error: ‘testWidget’ has not been declared
testWidget::readCaliImg("Calibration.y");
^~~~~~~~~~
prog.cpp:51:5: error: ‘cout’ was not declared in this scope
cout<<testWidget::caliImgName<<endl;
^~~~
prog.cpp:51:11: error: ‘testWidget’ has not been declared
cout<<testWidget::caliImgName<<endl;
^~~~~~~~~~
prog.cpp:51:36: error: ‘endl’ was not declared in this scope
cout<<testWidget::caliImgName<<endl;
^~~~
prog.cpp:53:56: error: ‘sprintf’ was not declared in this scope
sprintf(sys_cmd,"dir /A:D /b t* > folder_list.txt");
^
prog.cpp:54:19: error: ‘system’ was not declared in this scope
system(sys_cmd);
^
prog.cpp:59:48: error: ‘fopen’ was not declared in this scope
rFolderList = fopen("folder_list.txt", "rt");
^
prog.cpp:61:11: error: ‘EOF’ was not declared in this scope
while(EOF!=fscanf(rFolderList,"%s",folderName))
^~~
prog.cpp:61:50: error: ‘fscanf’ was not declared in this scope
while(EOF!=fscanf(rFolderList,"%s",folderName))
^
prog.cpp:84:24: error: ‘NULL’ was not declared in this scope
if(rImg == NULL)
^~~~
prog.cpp:87:17: error: ‘showString’ was not declared in this scope
showString->setText(tr(fileAddr));
^~~~~~~~~~
prog.cpp:87:48: error: ‘tr’ was not declared in this scope
showString->setText(tr(fileAddr));
^
prog.cpp:89:13: error: ‘showString’ was not declared in this scope
showString->setText(tr(fileAddr));
^~~~~~~~~~
prog.cpp:89:44: error: ‘tr’ was not declared in this scope
showString->setText(tr(fileAddr));
^
prog.cpp:92:57: error: ‘fread’ was not declared in this scope
fread(header,sizeof(unsigned char),1078,rImg);
^
prog.cpp:93:58: error: ‘fwrite’ was not declared in this scope
fwrite(header,sizeof(unsigned char),1078,wImg);
^
prog.cpp:95:27: error: ‘SEEK_SET’ was not declared in this scope
fseek(rImg,18,SEEK_SET);
^~~~~~~~
prog.cpp:95:35: error: ‘fseek’ was not declared in this scope
fseek(rImg,18,SEEK_SET);
^
prog.cpp:109:19: error: ‘img_ori’ was not declared in this scope
fread(img_ori,sizeof(unsigned char),width*height, rImg);
^~~~~~~
prog.cpp:111:13: error: ‘testWidget’ has not been declared
testWidget::imgProc();
^~~~~~~~~~
prog.cpp:117:44: error: ‘img_dst’ was not declared in this scope
fprintf(img_txt, "%03d\t", img_dst[i]);
^~~~~~~
prog.cpp:117:54: error: ‘fprintf’ was not declared in this scope
fprintf(img_txt, "%03d\t", img_dst[i]);
^
prog.cpp:120:20: error: ‘img_dst’ was not declared in this scope
fwrite(img_dst,sizeof(unsigned char),width*height, wImg);
^~~~~~~
prog.cpp:122:24: error: ‘fclose’ was not declared in this scope
fclose(rImg);
^
prog.cpp:129:23: error: ‘fclose’ was not declared in this scope
fclose(rFolderList);
^
prog.cpp: At global scope:
prog.cpp:138:6: error: ‘testWidget’ has not been declared
void testWidget::readCaliImg(string caliImgName)//char *caliImgName
^~~~~~~~~~
prog.cpp:138:30: error: variable or field ‘readCaliImg’ declared void
void testWidget::readCaliImg(string caliImgName)//char *caliImgName
^~~~~~
prog.cpp:138:30: error: ‘string’ was not declared in this scope
prog.cpp:156:6: error: ‘testWidget’ has not been declared
void testWidget::imgProc()//
^~~~~~~~~~
prog.cpp: In function ‘void imgProc()’:
prog.cpp:159:5: error: ‘showString’ was not declared in this scope
showString->setText(tr("Doing imgProc!!!!!!!!!!!!!!!!"));
^~~~~~~~~~
prog.cpp:159:59: error: ‘tr’ was not declared in this scope
showString->setText(tr("Doing imgProc!!!!!!!!!!!!!!!!"));
^
prog.cpp:161:23: error: ‘width’ was not declared in this scope
for(int i=0; i<(int)(width*height); i++)
^~~~~
prog.cpp:161:29: error: ‘height’ was not declared in this scope
for(int i=0; i<(int)(width*height); i++)
^~~~~~
prog.cpp:163:9: error: ‘img_dst’ was not declared in this scope
img_dst[i]=(unsigned char)255;
^~~~~~~