Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] help with Qt_widget

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] help with Qt_widget


Chronological Thread 
  • From: Laurent Rineau <>
  • To:
  • Subject: Re: [cgal-discuss] help with Qt_widget
  • Date: Wed, 12 Mar 2008 13:41:34 +0100
  • Organization: Inria, Sophia Antipolis, FRANCE

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)



Archive powered by MHonArc 2.6.16.

Top of Page