Written by marcelpetrick
on January 27, 2015
After adding some needed includes the following error can be shown by GCC:
1 |
QtGui.framework/Headers/qitemdelegate.h:124:40: error: macro "check" passed 3 arguments, but takes just 1 |
But you did not intend to deal neither with ‘QItemDelegate’ nor ‘check’. So what is the reason?
Have a look at the erroneous file: does it use an include like
1 |
#include <QtGui/QtGui> |
where someone was lazy as sh*t?
Replace this by the specialised includes. Recompile, fixed.
Some other workaround is the extensive use of
1 |
#undef check |
but I don’t really recommend this.
ps. ‘check’ is special. Did you try once to name your variable ‘string’?
Leave a Reply
You must be logged in to post a comment.