Thanks for your response, Thiago. So your intutiion was correct: the error is coming from exacty a line that says
#define Bool int However, this line is located in the the X11 libraries, in Xlib.h. I was using X11 to inject mouse clicks into the application. I had no problems using Xlib.h when I was using Qt4 but I am having problems in Qt5. Why would this be? What should I do to rectify it? I am reluctant to start chopping away at X11 header files. thanks mitchell On Fri, Aug 30, 2013 at 9:02 PM, Thiago Macieira <thiago.macie...@intel.com>wrote: > 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 > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest