How to compile and link simple application?

4544fa8d 4544fa8d at gmail.com
Mon Apr 8 18:38:58 UTC 2019


Hello,

I have "hello world" application. I imported std.file, executed 
thisExePath() and now I have this error:

----------------------------------------------------------------
dmd -m64 -of=../../bin/manager -release ./src/manager.d
/usr/include/dmd/phobos/std/file.d(3252): Error: readlink cannot 
be interpreted at compile time, because it has no available 
source code
/usr/include/dmd/phobos/std/file.d(3253):        called from 
here: delegate () => readlink(linkz.ptr(), & buffer, 2048LU)()
/usr/include/dmd/phobos/std/file.d(3433):        called from 
here: readLink("/proc/self/exe")
./src/manager.d(8):        called from here: thisExePath()
./src/manager.d(8):        called from here: 
dirName(thisExePath())
makefile:2: recipe for target 'all' failed
----------------------------------------------------------------

Whats going on? Why I cant build my executable file?


More information about the Digitalmars-d-learn mailing list