[問題] 請教一下_IO_ostream_withassign的問題

看板LinuxDev作者 (:))時間17年前 (2007/08/14 18:57), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我有個程式,可以用RedHat9底下的g++ compiler編譯成功, 但改用arm-elf-g++,就會出現編譯失敗的錯誤訊息,我的部 份原始碼如下 #include <iostream.h> #include <fstream.h> class SimS { public: SimS (_IO_ostream_withassign &s); ..... } 在SimS (_IO_ostream_withassign &s);這段程式碼會出現 parse error before '&' 我懷疑那是因為arm cross compiler library沒有_IO_ostream_withassign 這個class,想請問一下有經驗的大大們,這個問題要如何解決,謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.136.149.183
文章代碼(AID): #16mOgfTo (LinuxDev)
文章代碼(AID): #16mOgfTo (LinuxDev)