2013-09-30 38 views
0

例錯誤鏈接庫找不到`的std ::`

-lstdc++ 

和我有C++標準庫中生成設置設爲libstdc++

還有什麼我應該檢查?

+0

這是一個Objective-C++項目,我想 –

+0

變化從.M您的實現文件擴展名.mm – Tirth

+0

http://stackoverflow.com/questions/14376525/iostream-file-not-found-error-occur-in -xcode-4-5 – Tirth

回答

0

即使我添加了鏈接標誌-lstdc++,XCode 5也會覆蓋該選項。我不得不添加一個虛擬的C++類(.h.mm文件)來讓Xcode使用std C++。 Got the tip here