some GCC command
you have 3 file func.c show.c and main.c

1.gcc  main.c func.c show.c -o main
this command creat file main
you use ./main to execute

2.compile each file .c
gcc -c func.c
gcc -c show.c
gcc -c main.c
(you can also use : gcc -c func.c show.c main.c)
then link to one file execute
gcc main.o func.o show.o -e exe
the exe file will be created
you use ./exe

Nhận xét

Bài đăng phổ biến từ blog này

Con trỏ trong c/c++

Driver cho máy tính