Skip to content

Memory allocation failed when compiling with gdc #341

@Tooniis

Description

@Tooniis

Testing with this small program:

import gtk.Application;

int main(string[] args) {
	Application app = new Application("org.remote.Remote", GApplicationFlags.FLAGS_NONE);

	return app.run(args);
}

It works when compiled with ldc:

$ ldc -I/usr/include/d/gtkd-3 -L-lgtkd-3 main.d
$ ./main

(main:192195): GLib-GIO-WARNING **: 18:50:42.567: Your application does not implement g_application_activate() and has no handlers connected to the 'activate' signal.  It should do one of these.

But when compiled with gdc, it no longer works:

$ gdc -I/usr/include/d/gtkd-3 -lgtkd-3 main.d
$ ./a.out
core.exception.OutOfMemoryError@/build/gcc/src/gcc/libphobos/libdruntime/core/exception.d(705): Memory allocation failed
----------------

Is it just missing some compiler/linker flags, or is there more to it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions