[英]g++ permission denied(Mac)
If you do this gcc test.cpp
you will get executable called a.out
, and to run it you type:如果你这样做
gcc test.cpp
你会得到一个名为a.out
的可执行文件,运行它你输入:
./a.out
to get executable called test
you have to run g++ test.cpp -o test
now you can run this:要获得名为
test
的可执行文件,您必须运行g++ test.cpp -o test
现在您可以运行以下命令:
./test
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.