stdout does not work in GDC
D_Boy
obladiobama at gmail.com
Mon May 20 08:01:01 UTC 2019
I am following Ali Çehreli's book. It says that stdout.write()
should work the same as write()
In DMD it works. But when trying to compile with GDC I get the
following error:
gdc anApp.d -o anApp && ./anApp
/usr/bin/ld: /tmp/cc5zJLcW.o: in function `_Dmain':
anApp.d:(.text+0x32): undefined reference to
`_D3std5stdio24__T10makeGlobalS6stdoutZ10makeGlobalFNbNcNdNiZS3std5stdio4File'
collect2: error: ld returned 1 exit status
Could you please tell me what could be wrong?
I am using DMD64 2.086.0 and gdc (Ubuntu 8.3.0-6ubuntu1) 8.3.0 on
Ubuntu 19.04/64.
More information about the D.gnu
mailing list