作者BloodyDuke (个巴乐)
看板EE_DSnP
标题[问题] readCmd的问题
时间Mon Nov 15 21:51:58 2010
我把大部份的工作完成之後(大概剩跟dofile有关的没写)
在HW3底下make
却出现了这个很囧的讯息
/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+0x180): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned
long)'
cmdReader.cpp:(.text+0x1ae): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long,
unsigned long, unsigned long)'
../../lib/libcmd.a(cmdReader.o): In function `CmdParser::moveToHistory(int)':
cmdReader.cpp:(.text+0x82d): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned
long)'
(中略)
collect2: ld returned 1 exit status
make[1]: *** [../../bin/modCalc] Error 1
make: *** [main] Error 2
这样是指说cmdReader有错吗
还是我的程式的bug造成这个错误?
不过他也没有其他的错误讯息了...
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.244.34
※ 编辑: BloodyDuke 来自: 140.112.244.34 (11/15 21:52)
1F:→ cktigeryang:make 32 11/15 22:06
2F:→ BloodyDuke:make 32 我试了还是不行耶... 11/15 22:18
3F:→ BloodyDuke:喔喔 解决了 要先make clean一次 11/15 22:25
4F:推 qua2:我make clean过了还是有一样的问题.. 11/17 08:53
5F:推 qua2:好了 11/17 09:12