Quote:
Originally Posted by chocsplease
Noggin, I tried your suggestion and sadly it still won't compile - I'm getting the following -
Code:
gcc -s -lamiga -noixemul -O2 console2.c
console2.c:81: conflicting types for `IntuitionBase'
/gg/os-include/proto/intuition.h:17: previous declaration of `IntuitionBase'
I can fix the warning for main (why GCC wants to return an int is beyond me) but beyond that I'm still stumped -
|
Ah, sorry. I forgot I changed IntuitionBase too. Should be like this:
Quote:
struct IntuitionBase *IntuitionBase = NULL;
|
I will leave it to you to understand and then fix the warnings
main() should return an int as it's the result code for the OS. You can use this in a shell script for example.