How do I fix this problem?

breakout.c:109:26: error: expected expression
        if (getX(ball) + getWidth() >= getWidth(window))
/usr/include/spl/generic.h:44:49: note: expanded from macro 'getWidth'
#define getWidth(arg) getWidthGeneric(sizeof arg, arg)
1 error generated.
  • Some writes "Use GDB" to fix it but because of the error, it is not compiled so I do not think GDB running does worth to work out. Commented Aug 31, 2015 at 19:52

1 Answer 1


Couldn't be easier to fix. It's a straightforward issue. You have getWidth() in your test. getWidth of what????? Maybe getWidth(ball)?? You didn't give it an argument.

If this answers your question, please click the check mark to accept this and remove the question from the unanswered pool. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .