How to deal with linker error : error-cannot find -lgcc

后端 未结 1 1720
故里飘歌
故里飘歌 2021-02-12 23:01

this is my makefile:

task0 : main.o numbers.o add.o
        gcc -m32 -g -Wall -o task0 main.o numbers.o add.o

main.o : main.c
        gcc -g -Wall -m32 -ansi -c         


        
1条回答
  •  粉色の甜心
    2021-02-12 23:08

    (Answered in a comment. See Question with no answers, but issue solved in the comments (or extended in chat) )

    @Basil Starynkevitch wrote:

    You should install the gcc-multilib package

    @Jekyll wrote:

    https://askubuntu.com/questions/250910/cross-compilation-issues-with-gcc-g

    0 讨论(0)
提交回复
热议问题