#150283 - dexter0 - Fri Feb 01, 2008 3:06 pm
Perhaps it is my strong Java background but I just can't see how you would write a game (easily) without object oriented programming that C lacks. So, I'm trying to use C++.
Anyway, I am trying to compile a main.cpp file for the ARM7 however I receive the following error. The error only is thrown when the file is a cpp file. If it is C (main.c), it works fine.
error: invalid conversion from 'int' to 'IRQ_MASK'
error: initializing argument 1 of 'void irqEnable(IRQ_MASK)'
_________________
"It is better to keep your mouth shut and appear stupid than to open it and remove all doubt." ~ Mark Twain
Anyway, I am trying to compile a main.cpp file for the ARM7 however I receive the following error. The error only is thrown when the file is a cpp file. If it is C (main.c), it works fine.
error: invalid conversion from 'int' to 'IRQ_MASK'
error: initializing argument 1 of 'void irqEnable(IRQ_MASK)'
Code: |
irqEnable(IRQ_VBLANK | IRQ_VCOUNT); |
_________________
"It is better to keep your mouth shut and appear stupid than to open it and remove all doubt." ~ Mark Twain