[問題] 請教boost在complie時所遇到之錯誤問題

作者: pandamilktea (熊貓奶茶)   2014-07-23 13:25:16
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
Boost 1.55, ICU4C 53.1
問題(Question):
run底下的source code時, 發生錯誤
http://www.ccfinder.net/download/ccfx-src.zip
錯誤訊息顯示boost::bind參數數量不正確
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
錯誤訊息 https://db.tt/oo21Q49D
程式碼(Code):(請善用置底文網頁, 記得排版)
http://codepad.org/42OeXYGe
補充說明(Supplement):
麻煩請板上高手幫忙解惑, 謝謝!
作者: soheadsome (師大狗鼻哥)   2014-07-23 14:28:00
你的argv和argc是main的命列參數?然後push_back是你想把牠們放到vector?
作者: pandamilktea (熊貓奶茶)   2014-07-23 14:40:00
連結為完整程式碼 https://db.tt/cr1wqIw2看起來應該是這樣沒錯, source code載完就卡在這err程式碼修改為放上較完整之一部份
作者: soheadsome (師大狗鼻哥)   2014-07-23 15:26:00
那你就直接用algorithm裡的copy不就好了....copy(argv,argv+argc,back_inserter(/*你的vector */))http://imgur.com/THLDbi4 我這樣編得過欸而且錯誤訊息明明是跟你講適用到list的部分有錯你怎麼會覺得適用到vector那段有問題不對 我看錯了http://imgur.com/JnEzj6e 應該是這兩行的bind沒傳this

Links booklink

Contact Us: admin [ a t ] ucptt.com