How to compile (a two mixed C++ source codes from different packages in a single source code)
问题 Say I have two independent .cpp codes in two different directories: (please note that this is just a schematic of my question). Here is the first one ... which can be successfully compiled in its own directory which has its own Makefile // special libraries to include #include "acado.h" #include "auxiliary_functions.c" /* -------------------------- */ // Create objects for special classes ACADOvariables acadoVariables; ACADOworkspace acadoWorkspace; int main(){ // perform task A_1 // perform