1. #include "stdio.h" issue
In a 64-bit system, write a C program, using GCC, when compiling, there will be error:stdio.h: No that file, the workaround:
Install on the command line by entering sudo apt-get install build-essential
Reference: http://blog.csdn.net/yygydjkthh/article/details/41787049
2.warning:incompatible implicit declaration of built-in function ' printf '
Plus #inlcude "Stdio.h"
Warning:incompatible implicit declaration of built-in function ' strcpy '
Add # include "String.h"
Warning:incompatible implicit declaration of built-in function ' malloc '
Add # include "Stdlib.h"
3. Clone_vm,clone_sighand,clone_fs,clone_files not declared
Add # include "Linux/sched.h"
Reference: http://blog.csdn.net/vblittleboy/article/details/8052027
4. Undefined references to Sem_post, references to sem_wait undecided
I. See less head file:
#include "Pthread.h"
#include "semaphore.h"
II. Add-plthread at compile-time command
Problems with Linux compiling C