View Single Post
Old 11 June 2017, 13:53   #6
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,309
Quote:
Originally Posted by chocsplease View Post
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.
nogginthenog is offline  
 
Page generated in 0.13810 seconds with 11 queries