【发布时间】:2012-09-27 03:20:33
【问题描述】:
在运行 make 命令时,我得到以下输出,
g++ -DUNIX -Wall -g -I../include -I. main.o hfpage.o hfp_driver.o test_driver.o db.o new_error.o page.o system_defs.o buf.o -o hfpage
/usr/bin/ld: Warning: size of symbol `error_string_table::error_string_table(Status, char const**)' changed from 18 in db.o to 34 in buf.o
/usr/bin/ld: i386:x86-64 architecture of input file `buf.o' is incompatible with i386 output
collect2: ld returned 1 exit status
make: *** [hfpage] Error 1
此文件生成 hfpage.o,当我尝试使用 ./hfpage.o 运行时,我收到错误消息 bash: ./hfpage.o: cannot execute binary file。
我的系统有问题吗?
【问题讨论】:
标签: c bash makefile ubuntu-12.04