这是从别人那里复制过来的,一上年纪,记性差了,贴这里备查
1. Project|Compiler Options|Code| Smart Linkable (-CX) -> Checked
2. Project|Compiler Options|Linking|Debugging|Display Line Numbers in Run-time ErrorBacktraces (-gl) -> Unchecked
3. Project|Compiler Options|Linking|Debugging|Strip Symbols From Executable (-Xs) -> Checked
4. Project|Compiler Options|Linking|Link Style|Link Smart (-XX) -> Checked
The most important seem to be 2 and 3. The executable size should be now 2-3 MB instead of 16 MB.
5. Run upx <your_executable> to compress your binary by a factor of 2-3.
1. Project|Compiler Options|Code| Smart Linkable (-CX) -> Checked
2. Project|Compiler Options|Linking|Debugging|Display Line Numbers in Run-time ErrorBacktraces (-gl) -> Unchecked
3. Project|Compiler Options|Linking|Debugging|Strip Symbols From Executable (-Xs) -> Checked
4. Project|Compiler Options|Linking|Link Style|Link Smart (-XX) -> Checked
The most important seem to be 2 and 3. The executable size should be now 2-3 MB instead of 16 MB.
5. Run upx <your_executable> to compress your binary by a factor of 2-3.