Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Compiling:
- import std.stdio;
- void main()
- {
- writeln("Hello, World!");
- }
- !matthew@matthew-desktop:~$ ldc2 -I=/usr/local/include/d/ test.d
- test.o: In function `_D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv':
- test.d:(.text._D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv[_D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv]+0x1c): undefined reference to `_D3std5stdio6stdoutS3std5stdio4File'
- test.d:(.text._D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv[_D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv]+0x84): undefined reference to `_D3std9exception14__T7enforceTbZ7enforceFNaNfbLAxaAyamZb'
- test.o:(.data._D4test12__ModuleInfoZ+0x10): undefined reference to `_D3std5stdio12__ModuleInfoZ'
- collect2: error: ld returned 1 exit status
- Error: /usr/bin/gcc failed with status: 1
- !matthew@matthew-desktop:~$ ls /usr/local/include/d/
- core etc ldc std
- !matthew@matthew-desktop:~$ ldc2 --version
- LDC - the LLVM D compiler (908815):
- based on DMD v2.066.1 and LLVM 3.5.0
- Default target: x86_64-pc-linux-gnu
- Host CPU: core-avx-i
- http://dlang.org - http://wiki.dlang.org/LDC
- !matthew@matthew-desktop:~$ llvm-ar --version
- LLVM (http://llvm.org/):
- LLVM version 3.5.0
- Optimized build.
- Built Oct 6 2014 (05:33:01).
- Default target: x86_64-pc-linux-gnu
- Host CPU: core-avx-i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement