如图,编译报错:
[root@ubuntu /arnold_test/20220721_test_pthread]151# gcc test_mutex.c -lpthreadtest_mutex.c:25:1: error: stray ‘357’ in program void *thread1(void *arg); ^
原因:
代码中用了中文字符
参考文章:error: stray ‘357’ in program

如图,编译报错:
[root@ubuntu /arnold_test/20220721_test_pthread]151# gcc test_mutex.c -lpthreadtest_mutex.c:25:1: error: stray ‘357’ in program void *thread1(void *arg); ^
原因:
代码中用了中文字符
参考文章:error: stray ‘357’ in program