gcc script sample

Incloud .o file


1 make
gcc ReportSystem.c  ReportSystemTargetWakeUp  $(LIB_DIR)/file_reader.o -I$(INCLUDE_DIR)

2 .c
#include <file_reader.h>






gcc *.c -o test.exe -I/usr/include/libxml2  -lxml2 -lpthread
./test.exe



use target path to get lib
-I/usr/include/libxml2  -lxml2


use lib
-lpthread

留言

熱門文章