0

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. – user5231181 Aug 31 '15 at 19:52
0

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. ;-)

| improve this answer | |

You must log in to answer this question.

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