objective c - How do include a .c file to my ios app? -


i have file.c file want add ios app. renamed file.m, rename main() main2() , included in project in xcode. compiles fine how run main2()?

could please explain in detail? thanks.

more not, main of original c program going try , set processing loop or otherwise wait kind of input , try process it.

you aren't going able embed 1 entire program in , expect work unmodified. you'll need understand how second program works , integrate functionality first. without seeing implementation of second main, impossible more.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -