Thank you for your reply! i recompile qt with STL support. and problem solv
在 2011年10月7日 下午10:27,Hugo Parente Lima <hugo.l...@openbossa.org>写道: > On Friday 07 October 2011 09:47:27 mob cap wrote: > > reprocessor.cpp > > 2>.\parser\rpp\preprocessor.cpp(48) : error C2039: “toStdString”: is > > not a member of 'QString' > > 2> d:\qt\4.7.4\include\qtcore\../../src/corelib/tools/ > > qstring.h(101) : see declaration of 'QString' > > 2>.\parser\rpp\preprocessor.cpp(56) : error C2039: “fromStdString”: is > > not a member of 'QString' > > 2> d:\qt\4.7.4\include\qtcore\../../src/corelib/tools/ > > qstring.h(101) : see declaration of 'QString' > > 2>.\parser\rpp\preprocessor.cpp(56) : error C2228:left of > > “.append”must have class/struct/union > > 2>.\parser\rpp\preprocessor.cpp(56) : error C2039: “fromStdString”: is > > not a member of 'QString' > > 2> d:\qt\4.7.4\include\qtcore\../../src/corelib/tools/ > > qstring.h(101) : see declaration of 'QString' > > 2>.\parser\rpp\preprocessor.cpp(56) : error C3861: “fromStdString”: > > identifier not found > > 2>.\parser\rpp\preprocessor.cpp(56) : error C3861: “fromStdString”: > > identifier not found > > > > Maybe your Qt version was compiled without STL support, did you compile it > by > yourself? > > > environment: > > > > Visual Studio Express 2008, > > CMake, > > Git, > > python2.7 > > Qt 4.7.4 > > > > declaration of 'QString': > > > > class Q_CORE_EXPORT QString > > { > > ... > > #ifndef QT_NO_STL > > static inline QString fromStdString(const std::string &s); > > inline std::string toStdString() const; > > ... > > } > > _______________________________________________ > > PySide mailing list > > PySide@lists.pyside.org > > http://lists.pyside.org/listinfo/pyside > > -- > Hugo Parente Lima > INdT - Instituto Nokia de Tecnologia >
_______________________________________________ PySide mailing list PySide@lists.pyside.org http://lists.pyside.org/listinfo/pyside