用vs2003编译qt4.8源码,步骤:
1. configure -platform win32-msvc2003
2. qmake
3. nmake
编译过程中遇到的错误:
wtf\text\StringStatics.cpp(63) : error C2201: “nullAtom” : 必须有外部链接才可进行导出/导入
就是下面这部分代码,红色部分是错误行
想知道怎么解决,谢谢
#if COMPILER(WINSCW)
static AtomicString nullAtom1;
static AtomicString emptyAtom1;
static AtomicString textAtom1;
static AtomicString commentAtom1;
static AtomicString starAtom1;
static AtomicString xmlAtom1;
static AtomicString xmlnsAtom1;
#else
JS_EXPORTDATA DEFINE_GLOBAL(AtomicString, nullAtom)
JS_EXPORTDATA DEFINE_GLOBAL(AtomicString, emptyAtom, "")
JS_EXPORTDATA DEFINE_GLOBAL(AtomicString, textAtom, "#text")
JS_EXPORTDATA DEFINE_GLOBAL(AtomicString, commentAtom, "#comment")
JS_EXPORTDATA DEFINE_GLOBAL(AtomicString, starAtom, "*")
JS_EXPORTDATA DEFINE_GLOBAL(AtomicString, xmlAtom, "xml")
JS_EXPORTDATA DEFINE_GLOBAL(AtomicString, xmlnsAtom, "xmlns")
#endif