相关疑难解决方法(0)

gcc错误:错误的ELF类:ELFCLASS64

我试图使用外部编译对象coreset.o编译程序.我写了public01.c测试文件,我的函数在calculate.c中,两者都编译.然而它没有把它连接在一起.可能是什么问题?

gcc -o public01.x public01.o computation.o coreset.o
ld: fatal: file coreset.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to public01.x
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

gcc makefile

31
推荐指数
3
解决办法
10万
查看次数

标签 统计

gcc ×1

makefile ×1