I have been trying out SDL for iOS, and it has been going smoothly until I added sdl_ttf to the mix. The only output that I would get was
apinames 0.1: extract FreeType API names from header files
this program is used to extract the list of public FreeType API
functions. It receives the list of header files as argument and
generates a sorted list of unique identifiers
usage: apinames header1 [options] [header2 ...]
options: - : parse the content of stdin, ignore arguments
-v : verbose mode, output sent to standard error
-oFILE : write output to FILE instead of standard output
-dNAME : indicate DLL file name, 'freetype.dll' by default
-w : output .DEF file for Visual C++ and Mingw
-wB : output .DEF file for Borland C++
-wW : output Watcom Linker Response File
Upon googling, I found this SO question from someone who had the same problem as me: SDL2_ttf won't run on ios
It seems that a different main (one inside sdl_ttf) is being run and is producing the output.
A commenter on the post I mentioned said "I would guess you included apinames.c in your project from the tools directory and that main is what is getting run". What is the tools directory? How would I fix that?
How would I change the entry point of the Xcode project to my main.cpp?
Thanks for any advice.