我在工作站上編譯顯示錯誤,不太明白,麻煩助教看一下!
[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