I am having a rather puzzling problem. Recently, whenever I compile a program using GCC or G++, the compiler creates a shared library rather than an executable file. The library still runs if I execute it via CLI, but the system still treats it as a shared library in all other aspects. I have tested this problem with multiple files, and have found that while it always happens with GCC or G++, it never happens with clang. Help is appreciated. Thanks!
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.