/usr/bin/ld:找不到 -lc

/usr/bin/ld:找不到 -lc
root@ubuntu:/home/teqlinux/HMI_SCADA/GenLogic/glg_linux/glg/examples_c_cpp/misc/Blinking# gcc --version

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

root@ubuntu:/home/teqlinux/HMI_SCADA/GenLogic/glg_linux/glg/examples_c_cpp/misc/Blinking# type -a gcc
gcc is /usr/bin/gcc

我在构建某些文件时遇到一些错误.c

root@ubuntu:/home/teqlinux/HMI_SCADA/GenLogic/glg_linux/glg/examples_c_cpp/misc/Blinking# make -f makefile 
( gcc -L/home/teqlinux/HMI_SCADA/GenLogic/glg_linux/glg/lib  -L. -o GlgBlinkingExampleG GlgBlinkingExampleG.o  \
    -lglg_int -lglg -lglg_map_stub  \
    -lXm -lXt -lX11  \
                -lXft -lfontconfig -lfreetype -lz -ljpeg -lpng \
                 -lm -ldl -lpthread \
    || ( rm GlgBlinkingExampleG ; exit 1 ) )
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
rm: cannot remove 'GlgBlinkingExampleG': No such file or directory
makefile:126: recipe for target 'GlgBlinkingExampleG' failed
make: *** [GlgBlinkingExampleG] Error 1

相关内容