I have some *.c files. I want to have two binary from them for example:
a.c b.c -> ab
d.c e.c -> de
The a.c and d.c has main() function.
This is my code:
gcc a.c b.c -o ab.o -c
gcc -o ab ab.o
gcc d.c e.c -o de.o -c
gcc -o de de.o
I put this code in post-build-steps in codeblocks. The problem is when I compile the project it fails because of two main.