我试图使用外部编译对象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)