[Interest] Compiler Error from moc_MainWindow.cpp
Thiago Macieira
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
preprocessor problem.
My guess:
#define Bool int
Solution:
get a big axe and apply to the C header that does such things
If you need booleans in C code, use this:
#ifndef __cplusplus
# include <stdbool.h>
#endif
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...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130830/65a1211c/attachment.sig>
More information about the Interest
mailing list