hello everybody,
I have a weird question somehow, can we have more than one main function in a project? I mean for example 2 .cpp files where each has its own main, but they're both in the same project.
let me put it this way, i'm using MPI, where a process can spawn another process. however, in order to spawn a new process while run-time, you should have a .exe file already existing. which means another program, which means another main. can you see my point?
I guess it's a little far from what am seeking, process in this link is considered as a part of program, whereas process in my case is by itself a program.