Distribute a program compiled with MinGW g++

前端 未结 5 873
夕颜
夕颜 2021-01-05 08:31

Let\'s say I have created and compiled a simple program using the MinGW 64 (g++ compiler). Running this program on my computer and looking in Process Explorer for what DLL f

5条回答
  •  别那么骄傲
    2021-01-05 09:15

    You may like to add the options -static-libgcc and -static-libstdc++ to link the C and C++ standard libraries statically and thus remove the need to carry around any separate copies of those.

提交回复
热议问题