Advertisement
Guest User

LDC

a guest
Mar 12th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 1.29 KB | None | 0 0
  1. Compiling:
  2.  
  3. import std.stdio;
  4.  
  5. void main()
  6. {
  7.     writeln("Hello, World!");
  8. }
  9.  
  10.  
  11. !matthew@matthew-desktop:~$ ldc2 -I=/usr/local/include/d/ test.d
  12. test.o: In function `_D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv':
  13. test.d:(.text._D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv[_D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv]+0x1c): undefined reference to `_D3std5stdio6stdoutS3std5stdio4File'
  14. test.d:(.text._D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv[_D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv]+0x84): undefined reference to `_D3std9exception14__T7enforceTbZ7enforceFNaNfbLAxaAyamZb'
  15. test.o:(.data._D4test12__ModuleInfoZ+0x10): undefined reference to `_D3std5stdio12__ModuleInfoZ'
  16. collect2: error: ld returned 1 exit status
  17. Error: /usr/bin/gcc failed with status: 1
  18.  
  19. !matthew@matthew-desktop:~$ ls /usr/local/include/d/
  20. core  etc  ldc  std
  21.  
  22.  
  23. !matthew@matthew-desktop:~$ ldc2 --version
  24. LDC - the LLVM D compiler (908815):
  25.  based on DMD v2.066.1 and LLVM 3.5.0
  26.  Default target: x86_64-pc-linux-gnu
  27.  Host CPU: core-avx-i
  28.  http://dlang.org - http://wiki.dlang.org/LDC
  29.  
  30.  
  31. !matthew@matthew-desktop:~$ llvm-ar --version
  32. LLVM (http://llvm.org/):
  33.  LLVM version 3.5.0
  34.  
  35.  Optimized build.
  36.  Built Oct  6 2014 (05:33:01).
  37.  Default target: x86_64-pc-linux-gnu
  38.  Host CPU: core-avx-i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement