error: incomplete type 'blink::Event' named in nested name specifier note: forward declarat
Posted bigben0123
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error: incomplete type 'blink::Event' named in nested name specifier note: forward declarat相关的知识,希望对你有一定的参考价值。
c++编译报错:
.../../third_party/blink/renderer/modules/clipboard/clipboard.cc(34,19): error: incomplete type ‘blink::Event‘ named in nested name specifier DispatchEvent(*Event::Create(event_type_names::kChange)); ^~~~~~~ ../.. hird_party/blink/renderer/core/dom/events/registered_event_listener.h(34,7): note: forward declaration of ‘blink::Event‘ class Event; ^ 1 error generated.
这是由于在所继承的父类中申明了 class Event;但是没有引用的event.h头文件。
只要在cc文件中加入头文件,就解决。
以上是关于error: incomplete type 'blink::Event' named in nested name specifier note: forward declarat的主要内容,如果未能解决你的问题,请参考以下文章
error: incomplete type 'blink::Event' named in nested name specifier note: forward declarat
gcc源码编译报错:error: dereferencing pointer to incomplete type ‘struct ucontext’ 解决办法
求大神帮忙查看哪里出错,,急!(keil软件) EINT.C(4): error: #70: incomplete type is not allowed