Why do these two consecutive for loops cause a segfault but one works fine on its own and both functions work fine in one loop. Please help I want to be able to cycle through the objects a second time to run another function. Thanks.
Please does anybody know how to get -fpermissive working on c4droid so I can use const?
-fpermissive lets you get away with bad code that the compiler should stop you using. It's better to improve your code than convince the compiler to let you do things you shouldn't.