How to compile D application without the D runtime?

后端 未结 2 1695
故里飘歌
故里飘歌 2021-02-09 04:14

Iv been trying to figure this one out forever, and its starting to annoy me. I understand the D runtime library. What it is, what it does. I also understand that you can compile

2条回答
  •  伪装坚强ぢ
    2021-02-09 04:50

    module main;
    extern(C) __gshared void* _Dmodule_ref;
    extern(C) int main() {
        int a = 2 + 3;
        return 0;
    }
    

提交回复
热议问题