On 27.06.2011 1:46, maarten van damme wrote:
Sorry for flooding everyone's email boxes lately ;)
I can hardly beleive it but I succeeded in compiling. For some reason bud prefered the windows link.exe that was installed on my system with visual studio 2010 shell over the dmd version. I uninstalled it and I could compile it correctly. Then I coppied the gtkd directory to the src folder somewhere in the dmd installed folder structure and edited my sc.ini to: DFLAGS="-I%@P%\..\..\src\phobos" "-I%@P%\..\..\src\druntime\import" "-I%@P%\..\..\src\gtkd\src" "-I%@P%\..\..\src\gtkd\srcsv" "-I%@P%\..\..\src\gtkd\srcgda" "-I%@P%\..\..\src\gtkd\srcgl" "-I%@P%\..\..\src\gtkd\srcgstreamer" "-L %@P%\...\lib\GtkD.lib"

and the generated lib from bud was placed in the lib dir.
But here I have a little question (nearly last one, I promise :) ) Why doesn't d recognized the lib file automatically when I added it to the lib directory? I thought the line in sc.ini
LIB="%@P%\..\lib";\dm\lib;
took care of that? :s

It's simple: compiler have no idea what the name of lib would be, but it knows where to look for one if you provide a name.
Of course, phobos (together with druntime) is linked in implicitly.

--
Dmitry Olshansky

Reply via email to