Trying to link to Qt 5 on dmd 2.068.0~beta1

Shriramana Sharma via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 20 09:02:54 PDT 2015


Trying to compile the attached program to test DMD 2.068's promised
C++ interfacing capabilities:

$ dmd qt.d -L-L/usr/share/x86_64-linux-gnu -L-lQt5Core -L-lQt5Gui
qt.o:(.rodata+0x40): undefined reference to `QWidget::show()'
qt.o: In function `_Dmain':
qt.d:(.text._Dmain+0x3b): undefined reference to
`QApplication::__ctor(int&, char**)'
qt.d:(.text._Dmain+0x4f): undefined reference to `QApplication::exec()'
collect2: error: ld returned 1 exit status
--- errorlevel 1

Seems like I'm doing something hopelessly wrong. Please enlighten.
Also, please specifically review my hastily put-together argv(string[]
args) function...

I'm using Kubuntu Trusty 64 bit.

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt.d
Type: application/x-dsrc
Size: 843 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150720/c481f1de/attachment.bin>


More information about the Digitalmars-d mailing list