== Quote from Andrej Mitrovic (andrej.mitrov...@gmail.com)'s article > @dsimcha: > I can't compile your demotest from plot2kill, using gtkD and D2: > ..\lib\plot2kill.lib(gtkwrapper) > Error 42: Symbol Undefined _D5cairo12ImageSurface12ImageSurface7__ClassZ > ..\lib\plot2kill.lib(gtkwrapper) > Error 42: Symbol Undefined > _D5cairo12ImageSurface12ImageSurface6createFE4gtkc10cairotypes14cairo_format_tiiZC5cairo12ImageSurface12ImageSurface > ..\lib\plot2kill.lib(gtkwrapper) > Error 42: Symbol Undefined _D5cairo12ImageSurface12__ModuleInfoZ > ..\lib\plot2kill.lib(gtkwrapper) > Error 42: Symbol Undefined _D4gtkc3all12__ModuleInfoZ > --- errorlevel 4 > I've built gtkD via the \gtkD\src\build\gtkD.bat script, which uses > Bud. The GtkD.lib file does have a bunch of cairo symbols in it. > For demotest I'm building with: > dmd -version=gtk -version=test -I..\ ..\lib\plot2kill.lib > D:\dev\lib\D\gtkD\src\build\GtkD.lib ..\lib\dstats.lib > -ID:\dev\lib\D\gtkD\src -ID:\dev\lib\D\dstats demotest.d > Includes are fine but some symbols are missing. I've tried gtkD v1.4.1 > and from svn. :/ > How did you build gtkD exactly?
I didn't even know there was a gtkD.bat. I used dsss. To use DSSS, though, you have to mess with the configuration files (I don't remember exactly which one) in your DSSS directory to enable D_Version2. For some reason this isn't enabled by default when building with DSSS even when using a D2 compiler. Eventually Plot2kill needs better documentation, but I've temporarily given up on that until the DDoc bug report I filed that prevents the DDoc from compiling at all is fixed.