[Interest] Compiler Error from moc_MainWindow.cpp

Mitchell Verter mitchell.verter at gmail.com
Fri Aug 30 22:41:12 CEST 2013


I am getting errors when the Makefile tries to compile moc_MainWindow.o
from moc_MainWindow.cpp.

moc_MainWindow.cpp is a generated file so I'm not clear why I am not seeing
any errors in previous code.

I am using Qt5.1.1

The errors are:
moc_MainWindow.cpp:104:50: error: expected unqualified-id before ‘int’
moc_MainWindow.cpp:104:50: error: expected ‘}’ before ‘int’
moc_MainWindow.cpp:104:50: error: expected ‘,’ or ‘;’ before ‘int’
moc_MainWindow.cpp:111:1: error: expected declaration before ‘}’ token


Below is the function that generates the errors.  I have added line numbers.

static const uint qt_meta_data_MainWindow[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       1,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   79,    2, 0x05,

 // slots: name, argc, parameters, tag, flags
       3,    0,   82,    2, 0x08,
       4,    1,   83,    2, 0x08,
       5,    1,   86,    2, 0x08,
       6,    1,   89,    2, 0x08,
       8,    0,   92,    2, 0x08,
       9,    0,   93,    2, 0x08,
      10,    1,   94,    2, 0x08,
      12,    2,   97,    2, 0x08,
      13,    2,  102,    2, 0x08,
      14,    2,  107,    2, 0x08,
      16,    0,  112,    2, 0x08,
      17,    0,  113,    2, 0x08,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    2,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::QString,    7,
    QMetaType::Void,
    QMetaType::Void,
103:    QMetaType::Void, 0x80000000 | 11,    2,
104:    QMetaType::Void, QMetaType::UInt, QMetaType::Bool,    2,    2,
105:    QMetaType::Void, QMetaType::UInt, QMetaType::QString,    2,    2,
106:   QMetaType::Void, QMetaType::UInt, 0x80000000 | 15,    2,    2,
107:    QMetaType::Void,
108:    QMetaType::Void,
109:
110:      0        // eod
111: };
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130830/b6c6252c/attachment.html>


More information about the Interest mailing list