Linking Tango + QtD under Ubuntu (with Rebuild)

Thomas Brix Larsen brix at brix-verden.dk
Sun Aug 9 03:18:28 PDT 2009


Michael Mittner wrote:

> I'm trying to evaluate QtD. First step is to link something against Tango
> and Qt, but unfortunately I can't get it to work:
> 
> rebuild main.d -debug -full -oqobj/ -I~/coding -llqtdcore -llqtdgui -
> llQtCore -llQtGui
> 
> I have Tango installed via apt-get (and the Tango repository), as well as
> libqt4-dev and all its dependencies, but still the linker can resolve
> almost nothing. When I remove the QtD imports and simply link against
> Tango (with a test Stdout), it links and runs.
> 
> Has anybody run into some similar problem? I've never been good at this
> linking business and I'm out of ideas :( so help would be much
> appreciated.
> 
> Regards,
> Mike

Hello Mike.

This works well for me:
rebuild -oq.build main.d -L-lqtdgui -L-lqtdcore -L-lQtCore -L-lQtGui

/Brix



More information about the Digitalmars-d-learn mailing list