I have a main and another function in two different .C files and when i try to compile the function.c it gives me the error "undefined reference to main". How do i compile function() so that i get two separate executables, one for main and one for the function. I am trying to call execve in the main on this other function and i need an executable to call from correct?. Thanks.