RDMD + GTKD2
Gary Willoughby via Digitalmars-d
digitalmars-d at puremagic.com
Fri Nov 14 00:29:57 PST 2014
On Friday, 14 November 2014 at 07:23:14 UTC, Sergey wrote:
> Hello everyone!
>
> *********************
> import gtk.MainWindow;
> import etc...
>
> class WindowMain{
> ...
> ...
> }
> int main(string[] args)
> {
> Main.init(args);
> WindowMain main_window = new WindowMain();
> Main.run();
> return 0;
> }
> **********************
>
> rdmd:
> Error: module MainWindow is in file 'gtk/MainWindow.d' which
> cannot be read
> import path[0] = .
> import path[1] = /usr/include/dmd/phobos
> import path[2] = /usr/include/dmd/druntime/import
>
> How to do it?
> may be:
> pragma(lib, "gtkd2");
>
> I want to get rid of it:
> dmd `pkg-config --cflags --libs gtkd2 ` "%f"
You need to specify where the gtkd source is using the -I
compiler flag. If you look at the above import paths it's not
there.
More information about the Digitalmars-d
mailing list