I am in need of help in compiling a toggle for SBSettings. I have the source code for the Locations Toggle and I'm trying to compile that as an example but I keep getting errors during compiling. I am compiling via command line on my iPhone using MobileTerminal as I do not have access to Xcode for development. I'm stuck on compiling and programming on my phone for the time being. Any help on how to compile a .dylib for SBSettings will be much appreciated. I have GCC and tool chain installed on my iPhone. I have listed the three differed methods I used for compiling. My makefile: My only source file: Thank you in advance.