Qt 4.8.6 PCL 1.8.0 VS 2010 联合编译常见错误

简介:

在Qt和PCL联合编译的过程中,会出现各种各样的错误,解决这些错误的过程真是痛苦万分,所以总结一些常见错误方便自己也方便他人。比如我们要编译PCL1.8.0中的apps中的point_cloud_editor这个应用时,可能会遇到如下错误:

1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152): error C2146: syntax error : missing ';' before identifier 'glAccum'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C2146: syntax error : missing ';' before identifier 'glAlphaFunc'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C2146: syntax error : missing ';' before identifier 'glAreTexturesResident'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C2371: 'APIENTRY' : redefinition; different basic types
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C2146: syntax error : missing ';' before identifier 'glArrayElement'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C2146: syntax error : missing ';' before identifier 'glBegin'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C2146: syntax error : missing ';' before identifier 'glBindTexture'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C2146: syntax error : missing ';' before identifier 'glBitmap'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C2146: syntax error : missing ';' before identifier 'glBlendFunc'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C2146: syntax error : missing ';' before identifier 'glCallList'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C2146: syntax error : missing ';' before identifier 'glCallLists'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C2146: syntax error : missing ';' before identifier 'glClear'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C2146: syntax error : missing ';' before identifier 'glClearAccum'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C2146: syntax error : missing ';' before identifier 'glClearColor'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C2146: syntax error : missing ';' before identifier 'glClearDepth'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C2146: syntax error : missing ';' before identifier 'glClearIndex'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C2146: syntax error : missing ';' before identifier 'glClearStencil'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C2146: syntax error : missing ';' before identifier 'glClipPlane'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C2146: syntax error : missing ';' before identifier 'glColor3b'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C2146: syntax error : missing ';' before identifier 'glColor3bv'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C2146: syntax error : missing ';' before identifier 'glColor3d'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): error C2146: syntax error : missing ';' before identifier 'glColor3dv'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): fatal error C1003: error count exceeds 100; stopping compilation
1>  statisticsDialog.cpp
1>G:\xiaochen\projects\pcl\PCLEditor\PCLEditor\pcl/apps/point_cloud_editor/statisticsDialog.h(44): fatal error C1083: Cannot open include file: 'QLineEdit': No such file or directory
1>  transformCommand.cpp
1>C:\PCL1.8.0\install\include\pcl-1.8\pcl/point_traits.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>C:\PCL1.8.0\install\include\pcl-1.8\pcl/point_traits.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152): error C2146: syntax error : missing ';' before identifier 'glAccum'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C2146: syntax error : missing ';' before identifier 'glAlphaFunc'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C2146: syntax error : missing ';' before identifier 'glAreTexturesResident'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C2371: 'APIENTRY' : redefinition; different basic types
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C2146: syntax error : missing ';' before identifier 'glArrayElement'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C2146: syntax error : missing ';' before identifier 'glBegin'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C2146: syntax error : missing ';' before identifier 'glBindTexture'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C2146: syntax error : missing ';' before identifier 'glBitmap'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C2146: syntax error : missing ';' before identifier 'glBlendFunc'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C2146: syntax error : missing ';' before identifier 'glCallList'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C2146: syntax error : missing ';' before identifier 'glCallLists'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C2146: syntax error : missing ';' before identifier 'glClear'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C2146: syntax error : missing ';' before identifier 'glClearAccum'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C2146: syntax error : missing ';' before identifier 'glClearColor'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C2146: syntax error : missing ';' before identifier 'glClearDepth'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C2146: syntax error : missing ';' before identifier 'glClearIndex'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C2146: syntax error : missing ';' before identifier 'glClearStencil'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C2146: syntax error : missing ';' before identifier 'glClipPlane'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C2146: syntax error : missing ';' before identifier 'glColor3b'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C2146: syntax error : missing ';' before identifier 'glColor3bv'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C2146: syntax error : missing ';' before identifier 'glColor3d'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C2086: 'int APIENTRY' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): error C2086: 'int WINGDIAPI' : redefinition
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): error C2146: syntax error : missing ';' before identifier 'glColor3dv'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172): fatal error C1003: error count exceeds 100; stopping compilation

这个错误的解决方法很简单,哪个cpp文件产生了这些错误,就在该文件中加入下面一行头文件:

#include <windows.h>

加入了上面这行声明后,可能会引发另外一个错误:

1>selectionTransformTool.cpp(209): error C2589: '(' : illegal token on right side of '::'
1>selectionTransformTool.cpp(209): error C2059: syntax error : '::'
1>selectionTransformTool.cpp(210): error C2589: '(' : illegal token on right side of '::'
1>selectionTransformTool.cpp(210): error C2059: syntax error : '::'

发生这个错误的地方一般会调用max或者min函数,原因是windows.h里面将max和min定义成了宏,我们只需在#include <windows.h>这行前面加上下面这行即可:

#define NOMINMAX

如果Qt中使用了OpenGL模块,可能会出现下面这行错误:

1>cloudEditorWidget.obj : error LNK2019: unresolved external symbol _gluPerspective@32 referenced in function "protected: virtual void __thiscall CloudEditorWidget::resizeGL(int,int)" (?resizeGL@CloudEditorWidget@@MAEXHH@Z)

解决方法是在项目Properties -> Linker -> Input 中加入:

GLu32.lib

还有如果用了Qt的UI,可能会有如下的错误:

1>cloudEditorWidget.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const CloudEditorWidget::staticMetaObject" (?staticMetaObject@CloudEditorWidget@@2UQMetaObject@@B) referenced in function "public: static class QString __cdecl CloudEditorWidget::tr(char const *,char const *)" (?tr@CloudEditorWidget@@SA?AVQString@@PBD0@Z)
1>cloudEditorWidget.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall CloudEditorWidget::metaObject(void)const " (?metaObject@CloudEditorWidget@@UBEPBUQMetaObject@@XZ)
1>cloudEditorWidget.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall CloudEditorWidget::qt_metacast(char const *)" (?qt_metacast@CloudEditorWidget@@UAEPAXPBD@Z)
1>cloudEditorWidget.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CloudEditorWidget::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@CloudEditorWidget@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
1>denoiseParameterForm.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const DenoiseParameterForm::staticMetaObject" (?staticMetaObject@DenoiseParameterForm@@2UQMetaObject@@B) referenced in function "public: static class QString __cdecl DenoiseParameterForm::tr(char const *,char const *)" (?tr@DenoiseParameterForm@@SA?AVQString@@PBD0@Z)
1>denoiseParameterForm.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall DenoiseParameterForm::metaObject(void)const " (?metaObject@DenoiseParameterForm@@UBEPBUQMetaObject@@XZ)
1>denoiseParameterForm.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall DenoiseParameterForm::qt_metacast(char const *)" (?qt_metacast@DenoiseParameterForm@@UAEPAXPBD@Z)
1>denoiseParameterForm.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall DenoiseParameterForm::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@DenoiseParameterForm@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
1>mainWindow.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const MainWindow::staticMetaObject" (?staticMetaObject@MainWindow@@2UQMetaObject@@B) referenced in function "public: static class QString __cdecl MainWindow::tr(char const *,char const *)" (?tr@MainWindow@@SA?AVQString@@PBD0@Z)
1>mainWindow.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall MainWindow::metaObject(void)const " (?metaObject@MainWindow@@UBEPBUQMetaObject@@XZ)
1>mainWindow.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall MainWindow::qt_metacast(char const *)" (?qt_metacast@MainWindow@@UAEPAXPBD@Z)
1>mainWindow.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall MainWindow::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@MainWindow@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
1>statisticsDialog.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const StatisticsDialog::staticMetaObject" (?staticMetaObject@StatisticsDialog@@2UQMetaObject@@B) referenced in function "public: static class QString __cdecl StatisticsDialog::tr(char const *,char const *)" (?tr@StatisticsDialog@@SA?AVQString@@PBD0@Z)
1>statisticsDialog.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall StatisticsDialog::metaObject(void)const " (?metaObject@StatisticsDialog@@UBEPBUQMetaObject@@XZ)
1>statisticsDialog.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall StatisticsDialog::qt_metacast(char const *)" (?qt_metacast@StatisticsDialog@@UAEPAXPBD@Z)
1>statisticsDialog.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall StatisticsDialog::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@StatisticsDialog@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
1>G:\xiaochen\projects\qt\Qt4PCLEditor\Win32\Release\\Qt4PCLEditor.exe : fatal error LNK1120: 16 unresolved externals

本文转自博客园Grandyang的博客,原文链接:联合编译常见错误Qt 4.8.6 PCL 1.8.0 VS 2010 ,如需转载请自行联系原博主。

相关文章
|
7月前
|
C++
vtkdicom0.8_vtk9.2_dcmtk3.6.7_qt6.2编译OK
本文介绍了如何编译整合VTK 9.2、DICOM 0.8、DCMTK 3.6.7和Qt 6.2的步骤,包括安装Qt、CMake配置以及确认相关路径和版本设置。
156 1
vtkdicom0.8_vtk9.2_dcmtk3.6.7_qt6.2编译OK
VS2022+Qt5.14.2成功编译MITK2022.10
使用VS2022和Qt5.14.2成功编译MITK2022.10的过程,包括编译结果的截图、遇到的编译问题的解决方法、两个重要的注意事项(patch文件格式的修改和ITK-gitclone-lastrun文件的存在),以及参考链接。文中详细描述了如何解决编译过程中遇到的错误C2220和警告C4819,以及如何修改文件编码和尾行格式。
359 1
VS2022+Qt5.14.2成功编译MITK2022.10
vs2019_qt6.2.4_dcmtk3.6.7_vtk9.2.2_itk5.3_opencv4.6.0编译记录
这篇文章记录了使用VS2019编译Qt6.2.4、DCMTK3.6.7、VTK9.2.2、ITK5.3和OpenCV4.6.0的过程,包括下载和编译步骤,并提供了遇到编译错误时的解决方案和参考链接。
151 0
vs2019_qt6.2.4_dcmtk3.6.7_vtk9.2.2_itk5.3_opencv4.6.0编译记录
QT多插件通信框架CTK编译记录
本文记录了编译QT多插件通信框架CTK的过程,包括编译结果截图、部署配置、Log4Qt编译配置、参考链接和拓展资料。文中提供了详细的编译步骤和配置文件示例,以及相关的资源链接。
213 0
QT多插件通信框架CTK编译记录
opencv4.5.5+qt5.15.2+vtk9.1+mingw81_64编译记录
本文记录了使用mingw81_64编译OpenCV 4.5.5、Qt 5.15.2、VTK 9.1的详细过程,包括编译结果截图、编译步骤、遇到的问题及其解决方案,以及相关参考链接。文中还提到了如何编译boost源码为静态库,并提供了测试代码示例。
235 0
opencv4.5.5+qt5.15.2+vtk9.1+mingw81_64编译记录
|
7月前
|
BOOST1.75+QT5.15.2编译记录
本文记录了BOOST 1.75与Qt 5.15.2编译过程的详细步骤,包括编译结果截图、将boost源码编译为静态库的步骤,以及如何在Qt项目中使用BOOST库的测试代码。文章还提供了相关参考链接,以帮助解决在编译和使用过程中可能遇到的问题。
150 0
BOOST1.75+QT5.15.2编译记录
qt creator + vs2019编译记录
本文记录了作者在使用qt creator和vs2019编译项目时遇到的困难和解决方案,包括编译环境设置、qt creator编译脚本的成功案例、不带Ninja的编译脚本问题、错误示范以及相关参考链接。
240 0
qt creator + vs2019编译记录
|
7月前
编译QCefView+VS2019+QT5.15.2
本文介绍了如何编译QCefView项目,并在VS2019和Qt 5.15.2环境下集成,包括编译结果、要点、cmake部署Qt的方法和相关参考链接。
302 1
编译QCefView+VS2019+QT5.15.2
初步编译QT5.15.2+VS2019+VTK8.2.0
本文介绍了在VS2019中编译QT 5.15.2和VTK 8.2.0的过程,包括编译结果、cmake库编译配置和cmake应用配置脚本,以及推荐的参考链接。
306 4
|
7月前
|
C++
VS2019编译VTK-9.1.0+Qt5.15.2
本文介绍了在VS2019和Qt 5.15.2环境下编译VTK 9.1.0的过程,包括成功编译无警告和错误的截图、修改的pro文件内容,以及在QML中加入VTK的失败尝试和参考链接。
286 4

热门文章

最新文章

推荐镜像

更多
  • qt