Search code examples
ipadgcccompilationjailbreak

How to compile objc(c++, c) source on jailbroken iPad?


I've installed gcc but when I execute this comand:

gcc test.c

It says me:

test.c:1:18: error: stdio.h: No such file or directory

test.c: In function 'main':

test.c:5: warning: incompatible implicit declaration of builit-in function 'printf'

Test.c:

#include <stdio.h>
int main(void)
{
    printf("Hello, World!\n");
    return 0;
}


Solution

  • Well i just did the same, but you need to copy the header files into the ipad /usr/include via SSH but after that i keep getting other errors so there must be another step after copying the headers.