2012-11-27 60 views
1

我正在嘗試將xlslib集成到我的應用程序中。在編譯和安裝lib之後,我在代碼中添加了這個。然後,我得到了如下錯誤:XlsLib在IOS應用程序中集成

format_t::format_t(CGlobalRecords& gRecords, const u16string& fmtstr) : 
formatstr(fmtstr), 
index(0), 
m_usage_counter(0), 
m_GlobalRecords(gRecords) 
{ 
} 

錯誤:

format.cpp:125:52: Reference to 'u16string' is ambiguous

Out-of-line definition of 'format_t' does not match any declaration in

xlslib_core::format_t

而在format.h文件,聲明如下

format_t(CGlobalRecords& gRecords, const u16string& fmtstr);

任何一個人都可以幫助解決這個問題嗎?

回答

1

爲什麼你不在SourceForge頁面發佈錯誤報告?在任何情況下,xlslib項目都已更新,現在提供了DHxlslibIOS庫,您可以將它原樣加入到項目中。您可以使用最新的2.4.0b1源代碼下載壓縮包here,或從SVN中下載。該框架位於DHxls目錄中。