Re: Using GtK

2021-08-24 Thread Mike Parker via D.gnu
On Wednesday, 25 August 2021 at 01:40:39 UTC, Mike Parker wrote: So the formatting got borked and my first paragraph ended up with the quoted text. In case it isn't clear: ` Yes, `run` is the default. But you are misunderstanding how dub works. Neither `dub run` nor `dub build` accepts a so

Re: Using GtK

2021-08-24 Thread Mike Parker via D.gnu
On Tuesday, 24 August 2021 at 23:30:22 UTC, Ruby The Roobster wrote: I changed test.d to be the same code as in the HelloWorld.d(https://github.com/gtkd-developers/GtkD/blob/master/demos/gtk/HelloWorld.d)example that is provided by the GtkD github. Adding the comment to the top of the file and

Re: Using GtK

2021-08-24 Thread Ruby The Roobster via D.gnu
On Tuesday, 24 August 2021 at 22:21:44 UTC, Mike Parker wrote: On Tuesday, 24 August 2021 at 19:07:11 UTC, Ruby The Roobster wrote: Doing this, works though: dub add gtkd-3@3.9.0 then dub fetch gtkd-3@3.9.0 then dub test.d Will cause the program to run and execute. However, it doesn't save

Re: Using GtK

2021-08-24 Thread Mike Parker via D.gnu
On Tuesday, 24 August 2021 at 19:07:11 UTC, Ruby The Roobster wrote: Doing this, works though: dub add gtkd-3@3.9.0 then dub fetch gtkd-3@3.9.0 then dub test.d Will cause the program to run and execute. However, it doesn't save an executable to disk, which is what I want. Is there a way,

Re: Using GtK

2021-08-24 Thread Ruby The Roobster via D.gnu
On Tuesday, 24 August 2021 at 08:08:05 UTC, Iain Buclaw wrote: On Monday, 23 August 2021 at 20:21:13 UTC, Ruby The Roobster wrote: gdc -I/usr/include/gtkd-3 -L-ldl -L-libgtkd-3 test.d You're using command-line arguments as if you are compiling with dmd. On gcc `-L-libgtkd-3` means "add _di

Re: Using GtK

2021-08-24 Thread Iain Buclaw via D.gnu
On Monday, 23 August 2021 at 20:21:13 UTC, Ruby The Roobster wrote: gdc -I/usr/include/gtkd-3 -L-ldl -L-libgtkd-3 test.d You're using command-line arguments as if you are compiling with dmd. On gcc `-L-libgtkd-3` means "add _directory_ ./-libgtkd-3 to the list of directories to be searched

Re: undefined reference to `fiber_switchContext'

2021-08-24 Thread Iain Buclaw via D.gnu
On Monday, 23 August 2021 at 19:07:52 UTC, Mahdi wrote: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/libgphobos.so: undefined reference to `fiber_switchContext' collect2: error: ld returned 1 exit status I have this problem after installing GDC 11. I installed gcc,g++ and gdc version 11 from u