V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
angel725
V2EX  ›  C

ubuntu 把.c 编译成 exe

  •  
  •   angel725 · Oct 4, 2018 · 4720 views
    This topic created in 2770 days ago, the information mentioned may be changed or developed.
    ubuntu18
    怎么把 .c 编译成 exe
    4 replies    2018-10-05 14:42:04 +08:00
    celeron533
        1
    celeron533  
       Oct 4, 2018
    请在网上搜索:交叉编译
    xxgirl2
        2
    xxgirl2  
       Oct 4, 2018
    交叉编译,工具链:`apt install g++-mingw-w64`
    之后正常编译链接就行,运行时缺什么 DLL 直接复制过去。
    FrankHB
        3
    FrankHB  
       Oct 5, 2018   ❤️ 1
    gcc *.c -oxxx.exe
    (反正没说要 PE,干嘛交叉编译。都叫 EXEutable,又不要 shebang 啥卵子的,我还习惯编译出来不管啥都无脑搞成 exe 呢: https://github.com/FrankHB/YSLib/blob/bd84aeec73612e4a780905a4c3b19e7825e5beb5/Tools/Scripts/SHBuild-YSLib-common.txt#L324
    mnssbe
        4
    mnssbe  
       Oct 5, 2018
    @FrankHB 你就是这样糊弄产品和老板的么。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   809 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:14 · PVG 06:14 · LAX 15:14 · JFK 18:14
    ♥ Do have faith in what you're doing.