I was wondering (besided using PHP ;) what in C++ could provide similar functionality to PHP's include();
In PHP you canjust type include() almost anywhere and that file will be included dynamically. It's nice because you can check if it needs to be included on a file by file basis, which is nice because it keeps things compact.
Right now the only similar solution I see in C++ is the #include directive, however that includes the file no matter what, even if it's not needed.
I want to make a modular application, however I don't want to have to do excessive compiling to develop the said module. My goal is to develop the environment, then develop the modules seperately and toss them in a module folder when done.
Is there a generic way to do this without going into Dynamic Link Libraries or .so files?
Thanks.
In PHP you canjust type include() almost anywhere and that file will be included dynamically. It's nice because you can check if it needs to be included on a file by file basis, which is nice because it keeps things compact.
Right now the only similar solution I see in C++ is the #include directive, however that includes the file no matter what, even if it's not needed.
I want to make a modular application, however I don't want to have to do excessive compiling to develop the said module. My goal is to develop the environment, then develop the modules seperately and toss them in a module folder when done.
Is there a generic way to do this without going into Dynamic Link Libraries or .so files?
Thanks.
Comment