[webkit-dev] global constructor in WTF?
flyingwei1986 at gmail.com
Sat May 24 05:12:26 PDT 2014
I just added a declaration in WTF/wtf/DataLog.h, like what we commonly do
WTF_EXPORT_PRIVATE extern int abc;
Of course, DataLog.cpp has the actual declaration.
However, when compiling with Clang, it emits an error : "declaration
requires a global constructor". I am quite confused about the error
message. How can I write a constructor for abc?
I just want the variable abc to be visible as "dataLog" does. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev