看板 EE_DSnP 關於我們 聯絡資訊
教授我又來占文章篇數了 囧 當我全部除錯完畢之後 又出現同樣的編譯錯誤 我不管是用64 bit 還是 32bit 都一樣.... ../../lib/libcmd.a(cmdParser.o)(.text+0x38e): In function `CmdExec::lexSingleOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) const': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' ※ 引述《ckaha (★閃亮數學推理★)》之銘言: : ※ 引述《ckaha (★閃亮數學推理★)》之銘言: : : 我一連出現這個問題好幾行 也已經換成 ./to64 : : 不過我自己是還沒把memCmd.cpp給完成..... : : (這會有影響嗎?) : : ../../lib/libcmd.a(cmdParser.o)(.text+0x38e): In function : : `CmdExec::lexSingleOption(std::basic_string<char, std::char_traits<char>, : : std::allocator<char> > const&, std::basic_string<char, : : std::char_traits<char>, std::allocator<char> >&, bool) const': : : std::allocator<char> >::_Rep::_S_empty_rep_storage' : : 還是說我要先完成他呢? : 謝謝老師撥空 : 我的是在 國高的電腦上面去跑的 : 2.6.5-7.244-smp GNU/Linux : bash 2.05b.0(1)-release : gcc-3.3.3-43.41 /usr/bin/g++ : make-3.80-184.1 /usr/bin/make -- Every thing can be wrong unless you can proof it is true. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.225.146.40 ※ 編輯: ckaha 來自: 125.225.146.40 (05/03 01:14)
timrau:看起來像是glibc版本不同的問題... 05/03 12:48
ckaha:我的code拿到自己家用電腦上就可以順利編譯了.... 05/04 01:15