I did it on my Winows 10 machine, it's kinda too late to start it up now and run it but I'll do it tomorrow and post both the code and the error message.
Update:
I did this quickly on my MBP.
Code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
puts("Hello, world!");
return EXIT_SUCCESS;
}
Command:
dmd test.c
Error:
ld: address=0x0 points to section(2) with no content in '/Users/james/.asdf/installs/dmd/2.107.0/dmd2/osx/lib/libphobos2.a[3233](config_a98_4c3.o)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1
I did it on my Winows 10 machine, it's kinda too late to start it up now and run it but I'll do it tomorrow and post both the code and the error message.
Update: I did this quickly on my MBP.
Code: #include <stdio.h> #include <stdlib.h>
int main() { puts("Hello, world!"); return EXIT_SUCCESS; }
Command: dmd test.c
Error: ld: address=0x0 points to section(2) with no content in '/Users/james/.asdf/installs/dmd/2.107.0/dmd2/osx/lib/libphobos2.a[3233](config_a98_4c3.o)' clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: linker exited with status 1