[webkit-help] webkit build error - Assertion.h

柳正来 lzl124631x at 163.com
Wed Sep 26 20:01:09 PDT 2012


10>C:\Cygwin\home\Moon\WebKit-r128959\WebKitBuild\Release\include\private\wtf/Assertions.h(139): error C2144: syntax error : 'void' should be preceded by ';'
10>C:\Cygwin\home\Moon\WebKit-r128959\WebKitBuild\Release\include\private\wtf/Assertions.h(139): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
10>C:\Cygwin\home\Moon\WebKit-r128959\WebKitBuild\Release\include\private\wtf/Assertions.h(140): error C2144: syntax error : 'void' should be preceded by ';'
10>C:\Cygwin\home\Moon\WebKit-r128959\WebKitBuild\Release\include\private\wtf/Assertions.h(140): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
10>C:\Cygwin\home\Moon\WebKit-r128959\WebKitBuild\Release\include\private\wtf/Assertions.h(140): error C2086: 'int WTF_EXPORT_PRIVATE' : redefinition
10>          C:\Cygwin\home\Moon\WebKit-r128959\WebKitBuild\Release\include\private\wtf/Assertions.h(139) : see declaration of 'WTF_EXPORT_PRIVATE'



I got this build error.
Does anyone know how to fix this problem?


With the help of Source Insight, I located the defination of  WTF_EXPORT_PRIVATE in wtf/wtf/ExportMacros.h and the defination is as follow.
#if defined(WTF_IS_LINKED_IN_SAME_BINARY)
#define WTF_EXPORT_PRIVATE WTF_EXPORT
#else
#define WTF_EXPORT_PRIVATE WTF_IMPORT
#endif
Does it mean that the error occurred because compiler didn't compile the ExportMacros.h prior to Assertion.h?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20120927/8d010693/attachment.html>


More information about the webkit-help mailing list