作者victoret (戲言~)
看板EE_DSnP
標題[問題] 關於 make 出現的問題
時間Wed Oct 26 10:39:58 2011
/usr/bin/ld: i386:x86-64 architecture of input file
`../../lib/libcmd.a(cmdReader.o)' is incompatible with i386 output
../../lib/libcmd.a(cmdReader.o): In function `CmdParser::addHistory()':
cmdReader.cpp:(.text+0x19e): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned
long)'
../../lib/libcmd.a(cmdReader.o): In function `CmdParser::moveToHistory(int)':
cmdReader.cpp:(.text+0x9c4): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned
long)'
一按下 make 就會產生這個東西 = =
請問一下這個問題是出在哪???
感謝!
--
理所當然的某項事物,卻會以某天為區隔,從此變得不再理所當然。
恩田陸 夜間遠足
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.192.76.241
1F:推 goodword:有沒有 make 32 or make 64 10/26 10:44
2F:→ victoret:好像 make clean 再 make 就好了 sorry... 10/26 10:48
3F:→ victoret:不過之前試了幾次好像只有這次有用... 10/26 10:49
4F:推 alextan:切換32或64位元作業系統時binary檔好像要完全重新編譯才行 10/26 13:53