本帖最后由 happy886rr 于 2017-8-13 00:18 编辑
适用于安卓手机的gcc 6.1.0,自带非常全的库文件,支持最新c14新特性。可以编译各类C、C++源代码,对windows C程序,稍加修改即可实现到手机端移植。(一切超过10kb的,一切图均为外链)
]
下载地址:https://page37.ctfile.com/fs/14274637-215245318
使用方法:将gcc.tar 解压至手机data/local/tmp路径。sh ./ec.sh ./gccCOPY 请使用ec脚本运行,ec.sh: | | | | | | | if [ $# -ne 1 ] | | then | | echo "Usage: ec.sh [gcc_dir]" | | exit 1 | | else | | echo [===* Welcome to use ec script *===] | | if [ "${1:0:1}" == "/" ] | | then | | GCC_PATH=${1} | | else | | GCC_PATH=$(pwd)/${1} | | fi | | | | export PATH=${GCC_PATH}/bin:${GCC_PATH}/arm-linux-androideabi/bin:${GCC_PATH}/libexec/gccbin:${GCC_PATH}/libexec/gcc/arm-linux-androideabi/6.1.0:${PATH} | | | | 2>/dev/null ${GCC_PATH}/arm-linux-androideabi/bin/gcc --help | | if [ $? -ne 0 ] | | then | | echo "You must input a correct gcc_dir!" | | exit 1 | | fi | | | | while [ true ] | | do | | echo -n "[>>> " | | read args | | | | if [ "$args" == "quit" ] || [ "$args" == "exit" ] | | then | | break; | | fi | | | | if [ "$args" != "" ] | | then | | ${args} | | fi | | done | | echo -e "[<<<]" | | fiCOPY |
|