我最近將OSX升級爲山獅,並且因爲無法再使用Qt Creator編譯我的項目。我得到一堆錯誤類似如下:OSX升級後QtCreator構建系統崩潰
/Users/user/codes/lib/io/xdmfWriter.cpp:63: error: explicit instantiation of 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' but no definition available
/Users/user/codes/lib/io/xdmfWriter.cpp:-1: In instantiation of 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]':
/Users/user/codes/lib/io/xdmfWriter.cpp:63: instantiated from here
// xdmfWriter.cpp -- line 63:
gridName << xdmfName_ << "." << timeStep;
gridName
是std::ostringstream
對象和xdmfName_
被聲明爲xdmfWriter
的私有成員一個std::string
變量類並在類的構造函數中初始化。我之前沒有這個問題......任何想法?
呃...我有點卡在這個.. QT在哪裏轉儲所有的東西與標準安裝? – 2013-01-19 11:21:24
你可以運行'qmake -v'來獲取你的qt目錄的位置,對我來說就是'/ usr/local/Cellar/qt/4.8.4/lib'。然後,'mkspecs'目錄將會高於該目錄,或者對於我的例子來說,是'/ usr/local/Cellar/qt/4.8.4/mkspecs'。 – sordid 2013-02-27 14:49:49