gtkd

Alan Knowles alan at akbkhome.com
Sun Jan 6 15:57:59 PST 2008


...snip...
>> 
>> --bb
> 
> I created a new directory containing the example program and a dsss
> config file. The config file contained the line that you gave me.
> When I executed dsss build, the compiler threw a number of undefined
> reference errors. I'm pretty sure that the program needs to be linked
> against a library to compile. Unfortunately I don't names or
> locations of these libraries.

Gtkd uses dlopen() at startup to load all the associated libraries, so 
you dont have to have them available when you build. The only thing you 
need is the resuling libgtkD.a file (created from building gtkd)

Looks like the docs are pretty out of date.

compd is the best way to build gtkD stuff, as it's how the developers do 
stuff...

dmd YOURSOURCEFILE.d   -of/tmp/YOURCODENAME.o  -op  \
-Isrc:LOCATIONOFYOURCODE:/usr/src/gtkD/src -c   -g -I/usr/src/dmd/src/phobos

gcc  /tmp/YOURCODENAME.o -o YOURAPP -m32     -L.. -L. 
-L/usr/src/dui/gtkD  -lstdc++ -lphobos -lgtkd -ldl -g -m32 -lphobos 
-lpthread -lm


Should get you going.
Regards
Alan



More information about the Digitalmars-d mailing list