dwt compile problem
Ty Tower
tytower at hotmail.com.au
Mon Feb 4 21:05:18 PST 2008
Jesse Phillips Wrote:
> If your trying to compile a dwt project from the now dwt ports, you will
> have to install Tango first. As for the compiling command, there are a
> lot of libraries to reference. I use dsss for building and for a simple
> program this is the command it generates for rebuild:
>
> /usr/local/bin/rebuild -Idsss_imports/ -I. -S./ -I/home/he/d/include/d
> -S/home/he/d/lib/ -I/usr/local/include/d -S/usr/local/lib -I/home/he/d/
> include/d -S/home/he/d/lib -oqdsss_objs/D -L-lgtk-x11-2.0 -L-lgdk-
> x11-2.0 -L-latk-1.0 -L-lgdk_pixbuf-2.0 -L-lgthread-2.0 -L-lm -L-
> lpangocairo-1.0 -L-lfontconfig -L-lXtst -L-lXext -L-lXrender -L-lXinerama
> -L-lXi -L-lXrandr -L-lXcursor -L-lXcomposite -L-lXdamage -L-lX11 -L-
> lXfixes -L-lpango-1.0 -L-lgobject-2.0 -L-lgmodule-2.0 -L-ldl -L-lglib-2.0
> -L-lcairo -g -gc DrawingBoard.d -ofDrawingBoard
>
> So my suggestion would be to install dsss for building the projects. If
> you do you can switch the default in the rebuild configuration directory
> to dmd-posix-tango And the -dc= flag might let you change it on compile.
> If your trying to compile a dwt project from the now dwt ports, you will
> have to install Tango first. As for the compiling command, there are a
> lot of libraries to reference. I use dsss for building and for a simple
> program this is the command it generates for rebuild:
>
> /usr/local/bin/rebuild -Idsss_imports/ -I. -S./ -I/home/he/d/include/d
> -S/home/he/d/lib/ -I/usr/local/include/d -S/usr/local/lib -I/home/he/d/
> include/d -S/home/he/d/lib -oqdsss_objs/D -L-lgtk-x11-2.0 -L-lgdk-
> x11-2.0 -L-latk-1.0 -L-lgdk_pixbuf-2.0 -L-lgthread-2.0 -L-lm -L-
> lpangocairo-1.0 -L-lfontconfig -L-lXtst -L-lXext -L-lXrender -L-lXinerama
> -L-lXi -L-lXrandr -L-lXcursor -L-lXcomposite -L-lXdamage -L-lX11 -L-
> lXfixes -L-lpango-1.0 -L-lgobject-2.0 -L-lgmodule-2.0 -L-ldl -L-lglib-2.0
> -L-lcairo -g -gc DrawingBoard.d -ofDrawingBoard
>
> So my suggestion would be to install dsss for building the projects. If
> you do you can switch the default in the rebuild configuration directory
> to dmd-posix-tango And the -dc= flag might let you change it on compile.
Thanks Jesse,
The compiler command is :-
" [tytower at localhost misc]$ dmd ./hello.d gcc hello.o -o hello -m32
> -Xlinker -L/dmd/bin/../lib -lphobos -lpthread -lm hello.o " which builds the object file OK
The problem seems to be in the linker
The program downloaded as "DWT_for_D1.rar" and Frank mentions that in his post here
Anything else you can tell me ?
More information about the Digitalmars-d-learn
mailing list