Sign up

gtkd 3.6.6 compiling gdk/Event.d fails

I try to compile gtkd 3.6.6. But I should mention that I added some locales to library.

dmd -O -Igenerated/gtkd -c generated/gtkd/gdk/Event.d ofgenerated/gtkd/gdk/Event.o
generated/gtkd/gdk/Event.d(104): Error: undefined identifier LIBRARY_GDK

I get this error.

Line 104 is like this.

	~this ()
	{
		if (  Linker.isLoaded(LIBRARY_GDK) && ownedRef )
			gdk_event_free(gdkEvent);
	}

Re: gtkd 3.6.6 compiling gdk/Event.d fails

On 26-08-17 15:31, Erdem wrote:

I try to compile gtkd 3.6.6. But I should mention that I added some locales to library.

dmd -O -Igenerated/gtkd -c generated/gtkd/gdk/Event.d ofgenerated/gtkd/gdk/Event.o
generated/gtkd/gdk/Event.d(104): Error: undefined identifier LIBRARY_GDK

I get this error.

What are the changes you made? I don't have this issue with 3.6.6.

LIBRARY_GDK is defined in gtkc.gdk which gdk.Event imports.

Re: gtkd 3.6.6 compiling gdk/Event.d fails

On Sun, 27 Aug 2017 10:49:27 +0200, Mike Wey wrote:

What are the changes you made? I don't have this issue with 3.6.6.

I've only added some alias names to the source codes. Looks like this:

https://github.com/erdemoncel/gtkd/blob/master/bak%C4%B1m/yereller/gtk/Button.d.tr

I pulled some of the alias definitions from 3.5.1 source code and paste them to the 3.6.6 source code.

And thanks to Allah(c.c) now it compiles as expected I think.