[Interest] Compiler Error from moc_MainWindow.cpp
thiago.macieira at intel.com
Sat Aug 31 03:02:25 CEST 2013
On sexta-feira, 30 de agosto de 2013 16:41:12, Mitchell Verter wrote:
> moc_MainWindow.cpp:104:50: error: expected unqualified-id before ‘int’
> moc_MainWindow.cpp:104:50: error: expected ‘}’ before ‘int’
> 104: QMetaType::Void, QMetaType::UInt, QMetaType::Bool, 2, 2,
Note how there's no "int" on that line.
Whenever you get an error that doesn't make sense, it's likely to be a
#define Bool int
get a big axe and apply to the C header that does such things
If you need booleans in C code, use this:
# include <stdbool.h>
Then use regular bool.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Interest