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 

I am facing some error during build some .c file:

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 
7

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy