Step to reproduce :
Goto : http://wiki.amigaos.net/wiki/Exec_Memory_Allocation
Look for "Sample Code for Allocating Multiple Memory Blocks"
Search for line : "VOID main()"
Result : the example won't compile because the return type of "main()" should be "int" even if there's no return in the code. Adding a "return 0;"?
Same problem here, but as it's marked obsolete... http://wiki.amigaos.net/wiki/Obsolete_E ... Allocation
Kamelito
PS nice post about this topic @
http://stackoverflow.com/questions/2044 ... in-c-and-c
Error in source http://wiki.amigaos.net/wiki/Exec_Memory_All
Re: Error in source http://wiki.amigaos.net/wiki/Exec_Memory
verfified fixed.
Kamelito
Kamelito
- LyleHaze
- AmigaOS Core Developer
- Posts: 525
- Joined: Sat Jun 18, 2011 4:06 pm
- Location: North Florida, near the Big Bend
Re: Error in source http://wiki.amigaos.net/wiki/Exec_Memory
Seems like a lot of effort with no return...