Results 1 to 3 of 3

Thread: Compiler Error: declared as a `virtual' field, expected `;' before '(' token

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Compiler Error: declared as a `virtual' field, expected `;' before '(' token

    I'm trying to compile my PetManager (posted allready some time ago on win32) - now on Linux, and i get this error:
    Qt Code:
    1. g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/doc/qt-4.1.1/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -I../libs/dataobjects -I. -I. -o ObjectFactory.o ObjectFactory.cpp
    2. In file included from ObjectFactory.h:3,
    3. from ObjectFactory.cpp:1:
    4. ../libs/dataobjects/abstractfactory.h:14: error: `newObject' declared as a `virtual' field
    5. ../libs/dataobjects/abstractfactory.h:14: error: expected `;' before '(' token
    To copy to clipboard, switch view to plain text mode 

    what does that mean?

    I attached the sources of the library i use and of the application.

    to compile do this:
    Qt Code:
    1. unpack attached file
    2. export CPPLIBS=absolutepath to libs-dir (used by qmake-scripts)
    3. cd libs
    4. qmake
    5. make
    6. cd ..
    7. cd PetManager
    8. qmake
    9. make
    To copy to clipboard, switch view to plain text mode 

    thanks!!
    Attached Files Attached Files

Similar Threads

  1. Need help integrating sigc++ with a KDE3/Qt3 app
    By Valheru in forum Qt Programming
    Replies: 1
    Last Post: 17th November 2007, 15:39

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.