webkit研究日记2

使用webkit.dll等库的错误:

1)include “webkit.h”

webview *sss = new webview();

出现错误如下:

error C2512: “WebView”: 没有合适的默认构造函数可用


2)include “webkit.h”

      include “webview.h”

出现错误如下:

e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(78): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(87): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(93): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(114): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(128): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(128): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(128): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(129): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(129): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(129): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(130): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(130): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(130): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(131): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(131): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(131): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(132): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(132): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(132): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(133): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(133): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(133): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(134): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(134): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(134): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(135): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(135): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(135): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(136): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(136): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(136): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(137): error C2146: 语法错误: 缺少“;”(在标识符“WTFLogChannel”的前面)
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(137): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(137): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(138): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(138): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(138): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(140): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(140): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(140): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(141): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(141): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(141): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(142): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(142): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(142): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(145): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(145): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(145): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(146): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(146): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(146): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(149): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(149): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(149): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(161): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(161): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(161): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(173): error C2144: 语法错误:“void”的前面应有“;”
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(173): error C4430: 缺少类型说明符 - 假定为 int。注意:  C++ 不支持默认 int
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(173): error C2086: “int WTF_EXPORT_PRIVATE”: 重定义
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(127) : 参见“WTF_EXPORT_PRIVATE”的声明
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(201): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(209): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(321): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\assertions.h(368): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\possiblynull.h(44): error C3646: “WARN_UNUSED_RETURN”: 未知重写说明符
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\possiblynull.h(47): 参见对正在编译的类 模板 实例化“WTF::PossiblyNull<T>”的引用
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(105): warning C4800: “const unsigned char”: 将值强制为布尔值“true”或“false”(性能警告)
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(121): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(130): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(130): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(143): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(146): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(155): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(244): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(247): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(260): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(263): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(275): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(278): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(280): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(285): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(288): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(241): error C3646: “WARN_UNUSED_RETURN”: 未知重写说明符
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(298): 参见对正在编译的类 模板 实例化“WTF::ArithmeticOperations<LHS,RHS,ResultType,true,true>”的引用
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(257): error C3646: “WARN_UNUSED_RETURN”: 未知重写说明符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(272): error C3646: “WARN_UNUSED_RETURN”: 未知重写说明符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(326): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(303): error C3646: “WARN_UNUSED_RETURN”: 未知重写说明符
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(334): 参见对正在编译的类 模板 实例化“WTF::ArithmeticOperations<LHS,RHS,ResultType,false,false>”的引用
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(312): error C3646: “WARN_UNUSED_RETURN”: 未知重写说明符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(321): error C3646: “WARN_UNUSED_RETURN”: 未知重写说明符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(340): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(342): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(351): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(353): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(362): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(364): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(487): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(495): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(504): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(511): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(574): warning C4003: “min”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(574): warning C4003: “max”宏的实参不足
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(541): error C3646: “WARN_UNUSED_RETURN”: 未知重写说明符
          e:\webkit-r165260\webkitbuild\debug\include\private\wtf\checkedarithmetic.h(640): 参见对正在编译的类 模板 实例化“WTF::Checked<T,OverflowHandler>”的引用
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\stdlibextras.h(39): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\stdlibextras.h(53): warning C4067: 预处理器指令后有意外标记 - 应输入换行符
e:\webkit-r165260\webkitbuild\debug\include\private\wtf\stdlibextras.h(87): fatal error C1012: 不匹配的括号 : 缺少“)”


不知什么原因 请高手指点!


webkit研究日记2,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。