怎么编译和运行c语言程序?gcc test.c -o tes
termux吧
全部回复
仅看楼主
level 3
YuanIVr
楼主
怎么编译和运行c语言程序?
gcc test.c -o test
编译出的是不是可以直接运行的程序?
好像运行不了。
2019年01月30日 00点01分
1
level 11
芭芭拉冲鸭º
./<文件名> 执行
2019年01月30日 04点01分
2
YuanIVr
我知道了,是因为我编译的程序在/data/data/com.termux外面了。
2019年01月30日 06点01分
芭芭拉冲鸭º
只有data下的应用程序目录才有执行权,storage目录只有读、写权限,root才有执行权限
2019年01月30日 13点01分
level 3
YuanIVr
楼主
好像只能在termux的目录下执行
2019年01月30日 07点01分
3
level 10
随机代码😄
gcc test.c -o test.o
./test.o
2019年02月27日 04点02分
4
level 3
预知未来🌀
必须拥有执行权限再执行楼上的命令
2019年02月27日 04点02分
5
level 1
猥琐技术流♋
gcc test.c
./a.out
2019年02月27日 13点02分
6
level 10
天空海洋与大地
不是加&&
2019年02月28日 10点02分
7
level 3
dvydn
请问home目录下软连接中的.c文件非root用户可以执行吗
2019年10月18日 03点10分
9
level 8
爱笑的jrql
用g++编辑后./a.out执行,当然你也可以把它改成其它名称。
2019年10月18日 04点10分
10
1