idk how to point out the problem but the decleration of extern SP_Circuit cirtuit in main.h causes a lot of trouble. we do MUST inject this variable into the GUI/SaveLoad via "main.h" inclusion. during the modularization process, i CANT seperate the gui folder with the apps folders(which is the application layer, it should depends the modules but not directly bonded with them). so it means gui module cant live standalone
suggestions:
- we can pass the variable into the gui manager.
- we can use singleton pattern to access the circuit
im open to discuss any other alternative solutions
idk how to point out the problem but the decleration of
extern SP_Circuit cirtuitinmain.hcauses a lot of trouble. we do MUST inject this variable into theGUI/SaveLoadvia "main.h" inclusion. during themodularizationprocess, i CANT seperate the gui folder with the apps folders(which is the application layer, it should depends the modules but not directly bonded with them). so it means gui module cant live standalonesuggestions:
im open to discuss any other alternative solutions