Re: stdout does not work in GDC

2019-05-27 Thread Iain Buclaw via D.gnu
On Mon, 27 May 2019 at 09:15, D_Boy via D.gnu wrote: > > On Thursday, 23 May 2019 at 17:39:32 UTC, Iain Buclaw wrote: > > And what happens when you compile with -static-libphobos? > > > > This confirms whether you are indeed linking against the wrong > > library or not. > > gdc main.d -static -lib

Re: stdout does not work in GDC

2019-05-27 Thread D_Boy via D.gnu
On Thursday, 23 May 2019 at 17:39:32 UTC, Iain Buclaw wrote: And what happens when you compile with -static-libphobos? This confirms whether you are indeed linking against the wrong library or not. gdc main.d -static -libphobos -o main /usr/bin/ld: cannot find -libphobos collect2: error: ld

Re: stdout does not work in GDC

2019-05-23 Thread Iain Buclaw via D.gnu
On Thu, 23 May 2019 at 19:35, D_Boy via D.gnu wrote: > > On Monday, 20 May 2019 at 15:19:27 UTC, Iain Buclaw wrote: > > On Mon, 20 May 2019 at 12:50, D_Boy via D.gnu > > wrote: > >> > >> On Monday, 20 May 2019 at 08:01:01 UTC, D_Boy wrote: > >> > I am following Ali Çehreli's book. It says that >

Re: stdout does not work in GDC

2019-05-23 Thread D_Boy via D.gnu
On Monday, 20 May 2019 at 15:19:27 UTC, Iain Buclaw wrote: On Mon, 20 May 2019 at 12:50, D_Boy via D.gnu wrote: On Monday, 20 May 2019 at 08:01:01 UTC, D_Boy wrote: > I am following Ali Çehreli's book. It says that > stdout.write() > should work the same as write() > > In DMD it works. But w

Re: stdout does not work in GDC

2019-05-20 Thread Iain Buclaw via D.gnu
On Mon, 20 May 2019 at 12:50, D_Boy via D.gnu wrote: > > On Monday, 20 May 2019 at 08:01:01 UTC, D_Boy wrote: > > 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

Re: stdout does not work in GDC

2019-05-20 Thread D_Boy via D.gnu
On Monday, 20 May 2019 at 08:01:01 UTC, D_Boy wrote: 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

stdout does not work in GDC

2019-05-20 Thread D_Boy via D.gnu
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 re