How can I solve invalid dependencies problem with g++? While practicing compiling cpp into dll, I encountered the following problem