compiler error output to a file named err
发布日期:2021-05-08 01:23:17 浏览次数:14 分类:精选文章

本文共 332 字,大约阅读时间需要 1 分钟。

root@sunny-desktop:~/Desktop# cat test.c

#include<stdio.h>
void dive()
{
    int a = 0
    int b = 12 / a;
}
void main()
{
    dive();
    printf("aaf");
}

root@sunny-desktop:~/Desktop# gcc test.c 2>err

root@sunny-desktop:~/Desktop# cat err
test.c: In function ‘dive’:
test.c:5: error: expected ‘,’ or ‘;’ before ‘int’
root@sunny-desktop:~/Desktop#

上一篇:program output redirect to a file named t
下一篇:android电源

发表评论

最新留言

第一次来,支持一个
[***.219.124.196]2025年03月29日 15时32分16秒