GtkD HelloWorld app crashes with exception

Enjoys Math enjoysmath at gmail.com
Sat May 18 01:34:30 PDT 2013


On Saturday, 18 May 2013 at 08:25:34 UTC, Enjoys Math wrote:
> I'm guessing I should try building a Win32 app and maybe those 
> symbols will then be defined.

Here's a minimal Win32 app in visual D:

module winmain;

private import gtk.MainWindow;
private import gtk.Label;
private import gtk.Main;

class HelloWorld : MainWindow
{
	this()
	{
		super("GtkD");
		setBorderWidth(10);
		add(new Label("Hello World"));

		showAll();
	}

}

void main(string[] args)
{

	Main.init(args);
	new HelloWorld();
	Main.run();

}


And the errors are:

OPTLINK (R) for Win32  Release 8.00.12
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
C:\D\dmd2\windows\bin\..\lib\GtkD.lib(ObjectG)
  Error 42: Symbol Undefined _D4core6memory2GC7addRootFxPvZv (void 
core.memory.GC.addRoot(const(void*)))
C:\D\dmd2\windows\bin\..\lib\GtkD.lib(ObjectG)
  Error 42: Symbol Undefined _D4core6memory2GC10removeRootFxPvZv 
(void core.memory.GC.removeRoot(const(void*)))
C:\D\dmd2\windows\bin\..\lib\GtkD.lib(glib)
  Error 42: Symbol Undefined 
_D4core6memory2GC6qallocFkkZS4core6memory8BlkInfo_ 
(core.memory.BlkInfo_ core.memory.GC.qalloc(uint, uint))
C:\D\dmd2\windows\bin\..\lib\GtkD.lib(glib)
  Error 42: Symbol Undefined _D4core6memory2GC6extendFPvkkZk (uint 
core.memory.GC.extend(void*, uint, uint))
C:\D\dmd2\windows\bin\..\lib\GtkD.lib(glib)
  Error 42: Symbol Undefined _D4core5bitop3bsrFNaNbkZi (pure 
nothrow int core.bitop.bsr(uint))
Building Debug\WindowsApp2.exe failed!


More information about the Digitalmars-d-learn mailing list