Re: Can't compile qt3 programs with debian
On Wed, 2002-07-24 at 12:30, Markus Grunwald wrote:
> Hello,
>
> using debian testing (sarge), I have the following qt debs installed:
> markus@Eddie: > COLUMNS=120 dpkg -l \*qt\* | grep ii
> ii libqt2 2.3.1-22
> ii libqt3 3.0.3-20020329-1
> ii libqt3-dev 3.0.3-20020329-1
> ii libqt3-mt 3.0.3-20020329-1
> ii libqt3-mt-mysql 3.0.3-20020329-1
> ii libqt3-mysql 3.0.3-20020329-1
> ii qt3-doc 3.0.3-20020329-1
> ii qt3-tools 3.0.3-20020329-1
>
> I extracted /usr/share/doc/qt3-doc/examples.tgz and tried to compile
> some examples. None worked because of similar errors:
>
> markus@Eddie: > qmake -o Makefile aclock.pro
> markus@Eddie: > make
> Some of the required modules (full-config) are not available.
> Skipped.
>
> With every example, one or the other module is missing.
>
> But the worst is still coming: I can't compile (link) my own qt3
> programs neither ! Every qt object gives me an "undefined reference"
>
> I made a simple qt3 project with designer. Then:
>
> markus@Eddie: > qmake -o Makefile Sticken.pro
> markus@Eddie: > make
> g++ -o Sticken .obj/sticken.o .obj/StickenMainBaseFrm.o
> .obj/qmake_image_collection.o .obj/moc_StickenMainBaseFrm.o
> -L/usr/share/qt/lib -L/usr/X11R6/lib -L/usr/lib -lqt -lXext -lX11
> -lm.obj/sticken.o: In function `main':.obj/sticken.o(.text+0x1b):
> undefined reference to `QApplication::QApplication[in-charge](int&,
> char**)'.obj/sticken.o(.text+0x71): undefined reference to
> `QObject::connect(QObject const*, char const*, QObject const*, char
> const*)'.obj/sticken.o(.text+0x7a): undefined reference to
> `QApplication::exec()'
>
> This goes on over several pages.
What g++ version are you using? I think qt was compiled with v2.95.4.
You can't use g++ 3.0 or 3.1 to link against the qt libraries because
the ABI (and therefore the C++ name mangling scheme) has changed.
Claudio
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: