MinGW Link Single EXE

前端 未结 1 588
面向向阳花
面向向阳花 2021-02-10 03:53

I installed MinGW and I just want to link my program into a single EXE file. I want to be able to give this EXE file to someone without having to worry about all the libgcc_s_d

相关标签:
1条回答
  • 2021-02-10 04:10

    You can use -static option when linking with libraries, and for libgcc and libstdc++ use the following:

    -static-libgcc -static-libstdc++ 
    
    0 讨论(0)
提交回复
热议问题