我试图使用dmd编译一个简单的hello world,但我得到了以下输出:
dmd hi
/usr/bin/ld: hi.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
hi.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
--- errorlevel 1
所以我试着用-fPIC
/usr/bin/ld: /u