Lets say I have 10 cpp files, the compiling and linking will normally create one executable. Instead of that I want to create 10 executables - one for each cpp file. Only one of them has a main and the others will be loaded or linked dynamically. How can I do this in C or C++? If not, are there other languages or engines that allow this?
Not sure if its clear.