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 ,如需转载请自行联系原博主。

相关文章
|
1月前
|
编译器 C语言 Windows
cryptopp使用Qt mingw编译,以及海思平台交叉编译
cryptopp使用Qt mingw编译,以及海思平台交叉编译
28 0
|
2月前
|
开发框架 Unix Linux
深度探索:Qt CMake工程编译后的自动打包策略
深度探索:Qt CMake工程编译后的自动打包策略
37 0
|
4月前
Qt rcc静态资源编译及使用 QtInstallframework 打包成安装包后图标丢失问题
Qt rcc静态资源编译及使用 QtInstallframework 打包成安装包后图标丢失问题
33 0
|
2月前
|
Unix 编译器 开发者
Qt5.14.2 轻松掌握Qt中的压缩与解压缩:QuaZIP的神秘面纱与实战演练之windows环境编译
Qt5.14.2 轻松掌握Qt中的压缩与解压缩:QuaZIP的神秘面纱与实战演练之windows环境编译
133 0
|
4月前
|
编译器
QT creator开发环境下 界面更改后运行程序不能实时更新或者在源文件添加该控件后无法编译的问题
在使用QT Creator开发界面的过程中,偶尔会出现添加控件后,运行程序后,界面控件无法更新的情况,或者在源文件使用该控件却出现无法编译的情况,使用QT Creator 4.8.2也会出现这个情况,也不知道这种情况会不会在以后有所改善。
68 0
|
1月前
|
编译器
正点原子IMX6ULL-安装交叉编译器、编译tslib触摸屏库、编译arm环境qt源代码
正点原子IMX6ULL-安装交叉编译器、编译tslib触摸屏库、编译arm环境qt源代码
|
2月前
|
自然语言处理 编译器 程序员
【Qt底层之 元对象的编译】Qt 元对象系统及其编译流程解析
【Qt底层之 元对象的编译】Qt 元对象系统及其编译流程解析
107 4
|
2月前
|
开发框架 前端开发 算法
【Qt App 编译 】Qt Cmake 资源文件的加载:如何使用 CMakeLists.txt 文件和资源文件
【Qt App 编译 】Qt Cmake 资源文件的加载:如何使用 CMakeLists.txt 文件和资源文件
42 0
|
2月前
|
Linux 开发工具 C语言
【研究Qt webengine 模块编译】linux 交叉编译qt5.12的webengine模块成功的条件
【研究Qt webengine 模块编译】linux 交叉编译qt5.12的webengine模块成功的条件
132 1
|
6月前
|
安全 测试技术 C++
Windows下C++使用gRPC(Qt和VS,含文件包和使用方法)
最近用到了gRPC,配置了很长时间,分享一下配置过程。先来看一下我准备的文件包(资源我放在最后)
Windows下C++使用gRPC(Qt和VS,含文件包和使用方法)

推荐镜像

更多