Results 1 to 2 of 2

Thread: Multiple types and other errors compiling qwt app

  1. #1
    Join Date
    Aug 2010
    Posts
    12
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Multiple types and other errors compiling qwt app

    I'm compiling a large app (actually several apps, several .so files) using Qwt and Qt. Normally the build system uses the Qt and Qwt officially installed on our RH5 workstations, but I want to build the app with a different version of qwt built from source downloaded yesterday. I continue to use the installed Qt 4.3.4 (yeah, it's old.) Qwt itself built fine (using just qmake-qt4, make, make install) and I've adjusted the paths and stuff in the app's build system's files. The new qwt is in /home/darenw/hack/ But it won't compile. I get these errors:

    /home/darenw/hack/lib/qwt-5.0.2/include/qwt_plot_canvas.h:19: error: multiple types in one declaration
    /usr/include/QtCore/qset.h:290: error: definition of 'casa::QSet<T> QList<T>::toSet() const' is not in namespace enclosing 'QList<T>'
    /usr/include/QtCore/qset.h:290: error: prototype for 'casa::QSet<T> QList<T>::toSet() const' does not match any in class 'QList<T>'
    /usr/include/QtCore/qlist.h:304: error: candidate is: QSet<T> QList<T>::toSet() const
    /usr/include/QtCore/qset.h:290: error: template definition of non-template 'casa::QSet<T> QList<T>::toSet() const'
    /usr/include/QtCore/qset.h: In member function 'casa::QSet<T> QList<T>::toSet() const':
    /usr/include/QtCore/qset.h:292: error: reference to 'QSet' is ambiguous
    /usr/include/QtCore/qlist.h:63: error: candidates are: template<class T> struct QSet
    /usr/include/QtCore/qset.h:54: error: template<class T> class casa::QSet
    /usr/include/QtCore/qset.h:292: error: expected primary-expression before '>' token
    ...hundreds more errors follow....

    What are likely explanations for this, and ways to fix this? Is Qt4.3.4 too old? Are there any diagnostics checks to pin down the exact problem?

  2. #2
    Join Date
    Aug 2010
    Posts
    12
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Multiple types and other errors compiling qwt app

    I've changed which version of qwt to use in this project. The problem went away.

Similar Threads

  1. Replies: 1
    Last Post: 25th December 2010, 07:38
  2. Errors after compiling for Win
    By cejohnsonsr in forum Newbie
    Replies: 3
    Last Post: 26th August 2010, 22:31
  3. Compiling errors - can't find the libraries
    By magelet in forum Newbie
    Replies: 7
    Last Post: 24th May 2010, 08:24
  4. C++ Compiling Errors when use Visual Studio 6.0
    By seguprasad in forum General Programming
    Replies: 1
    Last Post: 3rd February 2009, 11:47
  5. compiling errors when using opengl and debug
    By invictus in forum Newbie
    Replies: 3
    Last Post: 31st March 2008, 06:16

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.