How to compile a D program/kernel properly?
I don't have much D experience, but know C++ pretty well.
When I try to compile a main.d with "gdc -c -o main.o main.d"
and a main.d like:
Code: Select all
int main() { return 0; }
Code: Select all
cc1d: error: cannot find source code for runtime library file 'object.d'
Code: Select all
cc1d: error: module __entrypoint is in file '__entrypoint.d' which cannot be read
And it throws another error:
Code: Select all
cc1d: error: ModuleInfo not found. object.d may be incorrectly installed or corrupt.
Shortly: What should I do?