cannot find -lc and -lm in g++ linux

前端 未结 3 1109
花落未央
花落未央 2021-02-07 14:22

I am using ubuntu and gcc and g++ were working fine but today it showed:

cannot find -lm
cannot find -lc

I searched and found it has something

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 14:30

    the compiler cannot find static glibc, you might have installed only shared libraries
    try

    yum install glibc-static

提交回复
热议问题