dwt compile problem

John Reimer terminal.node at gmail.com
Mon Feb 4 21:44:48 PST 2008


Ty Tower wrote:
> 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 ?
> 


I'm confused with what you are doing; it doesn't appear like you are are 
      working on the windows platform here (unless this is mingw bash 
shell).

Are you using Linux? If you are, dwt 3.02 does not work on linux at all. 
  The old dwt is and always was win32-only.

If you would like to try the new linux version (which is still alpha 
quality), please go here:

www.dsource.org/projects/dwt-linux

and follow the instructions for getting the source code (until we 
establish a system for packaging and serving it).

Also, feel free to ask more questions and discuss dwt in general in the 
digitalmars.d.dwt forum, if you like. :)

All the best,

JJR


More information about the Digitalmars-d-learn mailing list