[問題] hw4 compile error

作者: ayzk (ayzk)   2012-11-27 18:51:21
我在工作站上編譯顯示錯誤,不太明白,麻煩助教看一下!
[email protected]:~/HFPage/src> make
g++ -g -I../include -I. -c main.C
g++ -g -I../include -I. -c hfpage.C
g++ -g -I../include -I. -c test_driver.C
g++ -o hfpage main.o hfpage.o hfp_driver.o test_driver.o -I../include -I. -L. -lhfpage -lm
/usr/bin/ld: i386 architecture of input file `hfp_driver.o' is incompatible with i386:x86-64 output
hfp_driver.o: In function `HfpDriver::runAllTests()':
/home/ayzk/HFPage/src/hfp_driver.C:50: undefined reference to `operator new(unsigned int)'
collect2: error: ld returned 1 exit status
make: *** [hfpage] Error 1
作者: bombom (蹦蹦)   2012-11-27 22:04:00
換一台看看?
作者: vincimrs (green)   2012-11-27 22:32:00
同學問題已解決 ^^

Links booklink

Contact Us: admin [ a t ] ucptt.com