I'm using Eclipse with CDT. I have a project that has many executables. It's makefile driven, so all executables are built correctly.
Anyway, when I launch a debug session, GDB is pointed to the wrong main.cpp and debugging is practically worthless in the scope of that file. All other subsequent files are alright.
This is the incorrect path that it chooses:
72-break-insert -t main
But, it should use this file (but errors):
89^error,msg="No source file named D:/unittests/src/main.cpp."
Because both files contain a main(), the IDE grabs the first one that it finds, because the symbols match the function signature. Is there any way around this without having to split the project into multiple projects?