Subject: CGAL users discussion list
List archive
- From: BomBielFil <>
- To:
- Subject: Re: [cgal-discuss] help with Qt_widget
- Date: Tue, 25 Mar 2008 15:03:48 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kvl+Z+e5Qay3VkXS4J0D+E2oyJcEO7AaCHsfaHuUgoe43CxzWtRBCD/MOATXRnX9llYWPzRDfMsLIfFn2JEBC0i3CTTwVcx9h5nquIFJLaa6GhLGskI1ckAxI63INCnXvDXO40wc0DIrjtqQbtfXOZFE2+Hj1JpEaxX9JlK5HkY=
I tried to introduce -lqt-mt in my g++ command: "g++ -Wall -I/usr/local/include -I/usr/include/qt3 -L/usr/local/lib -lCGAL -lm -lqt-mt disegno.cpp -lstage -o disegno `pkg-config --cflags --libs gtk+-2.0`"
but now the error is:
disegno.cpp:(.text+0x171): undefined reference to `CGAL::Qt_widget::Qt_widget(QWidget*, char const*)'
disegno.cpp:(.text+0x20a): undefined reference to `CGAL::Qt_widget::set_window(double, double, double, double, bool)'
disegno.cpp:(.text+0x269): undefined reference to `CGAL::Qt_widget::operator<<(CGAL::Color const&)'
/tmp/ccKsvcxn.o: In function `CGAL::Qt_widget& CGAL::operator<< <CGAL::Simple_cartesian<double> >(CGAL::Qt_widget&, CGAL::Point_2<CGAL::Simple_cartesian<double> > const&)':
disegno.cpp:(.text._ZN4CGALlsINS_16Simple_cartesianIdEEEERNS_9Qt_widgetES4_RKNS_7Point_2IT_EE[CGAL::Qt_widget& CGAL::operator<< <CGAL::Simple_cartesian<double> >(CGAL::Qt_widget&, CGAL::Point_2<CGAL::Simple_cartesian<double> > const&)]+0x27): undefined reference to `CGAL::Qt_widget::x_pixel(double) const'
.........
...........
help me
best regard
2008/3/12, Laurent Rineau <>:
On Wednesday 12 March 2008 11:48:27 BomBielFil wrote:
> Hi
> someone could tell me how compile (g++ command) the example of Qt_widget in
> cgal manual ??
[...]
> my first error line is : "undefined reference to
> 'QApplication::QApplication(int&, char**)"
>
> It's the first time that I use this package
That error is a linkage error. It seems that you do have Qt3 installed on that
machine, but you have not linked the qt3 library with your program.
My guess is that you need to add "-lqt-mt", or "-lqt" to your g++ command. If
you Qt3 installation is quite standard, that you suffice. If not, you will
have to give us more details about your system, your Qt3 installation, and so
on.
--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
Tel: +33 4 92 38 78 62 (Fax: +33.4.97.15.53.95)
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- help with Qt_widget, BomBielFil, 03/12/2008
- Re: [cgal-discuss] help with Qt_widget, Laurent Rineau, 03/12/2008
- Re: [cgal-discuss] help with Qt_widget, BomBielFil, 03/25/2008
- Re: [cgal-discuss] help with Qt_widget, Laurent Rineau, 03/25/2008
- Re: [cgal-discuss] help with Qt_widget, BomBielFil, 03/25/2008
- Re: [cgal-discuss] help with Qt_widget, Laurent Rineau, 03/27/2008
- Re: [cgal-discuss] help with Qt_widget, BomBielFil, 03/25/2008
- Re: [cgal-discuss] help with Qt_widget, Laurent Rineau, 03/25/2008
- Re: [cgal-discuss] help with Qt_widget, BomBielFil, 03/25/2008
- Re: [cgal-discuss] help with Qt_widget, Laurent Rineau, 03/12/2008
Archive powered by MHonArc 2.6.16.