GDC missing betterC switch

Eugene Wissner belka at caraus.de
Thu Jul 18 16:14:11 UTC 2019


On Thursday, 18 July 2019 at 14:29:36 UTC, vladislavp wrote:
> Hello, I am looking for help using betterC with GDC
> (after this, my next step was to see if I can use wxWigdets 
> with GDC betterC without
>  wxD wrappers)
>
> This question is essentially same as below from 2018( it did 
> not have any answers).
> https://forum.dlang.org/thread/usdqpbusosanlsugwbip@forum.dlang.org
>
> If anyone would help with guidance on the above, very much 
> appreciated.

Iain:

`-fexceptions`, `-frtti`, and `-fmoduleinfo` control individual 
implicit Exception, TypeInfo, and ModuleInfo code generation, and 
`-nophoboslib` tells the driver to no bother attempting to link a 
phobos library.
All are wrapped together in a `-fdruntime` convenience switch, to 
which `-fno-druntime` turns off all of the above.

You can get away with:

module object;
extern(C) int main() { return 0; }

As a minimal program and it will just compile, no fancy switches 
required.
gcc test.d && ./a.out


More information about the D.gnu mailing list