gcc error: wrong ELF class: ELFCLASS64

后端 未结 5 1653
轻奢々
轻奢々 2020-12-17 08:51

I was trying to compile a program using an external compiled object coreset.o. I wrote the public01.c test file and my functions are in computation.c, both of which compile

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-17 09:10

    It looks like the object file was compiled on a 64-bit toolchain, and you're using a 32-bit toolchain. Have you tried recompiling the object file in 32-bit mode?

提交回复
热议问题