So, I'm trying to compile a basic c++ program, but when I run it on other computers, I get a "missing DLL" error. I looked it up and apparently adding -static-libstdc++ can fix the issue without having to add DLLs in the directory. I'm wondering how you add linker options when compiling. Do you add linker options along with the compiler options like this?
g++ -i some/program.cpp -o some/program.exe -(linker options here)
thanks to an amazing person, he solved my issue! What you do is add -static
to the compiler options.