IPHONE6 IOS8 安装GCC

大量宝贝在此:

http://apt.saurik.com/debs/

libgcc: http://apt.saurik.com/debs/libgcc_4.2-20080410-1-6_iphoneos-arm.deb
gcc: http://apt.saurik.com/debs/iphone-gcc_4.2-20080604-1-8p_iphoneos-arm.deb
gdb: http://apt.saurik.com/debs/gdb_1518-12p_iphoneos-arm.deb
make: http://apt.saurik.com/debs/make_3.81-2p_iphoneos-arm.deb
用dpkg -i *.deb安装

 

然后编译  gcc -o hi hi.c

直接执行./hi会报Illegal instruction: 4错误

此扫执行 sed -i” ‘s/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;’ hi

然后 执行./hi 就可以了

发表评论