Linker error on iOS, _main not found?

Hey

Im trying to compile the iPad demos from latest HG, but get this linker
error:

Undefined symbols for architecture armv7:

“_main”, referenced from:

  start in crt1.3.1.o

ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Anyone know how to fix it?

/Jacob

– “Believe nothing, no matter where you read it, or who said it, no matter
if I have said it, unless it agrees with your own reason and your own
common sense.” – Buddha

I was having the same issue. Adding …/libSDL2maind.a to “Other Linker Flags” in Xcode made it work.

Could any of the Devs comment on this?

It would also be nice if the iOS CMake setup could be fixed to include that file.

Thanks!