当我在 Mac OS X 上编译它时,它正在将引号 ("%d") 视为未定义的 ascii 符号

It is considering quotes ("%d") as undefined ascii symbol when I am compiling it on Mac OS X

例如。当我写这个-> scanf(“%d”,&newnode->x);

错误是,

list.c:18:7: error: non-ASCII characters are not allowed outside of literals and
      identifiers
scanf(“%d”,&newnode->x);
      ^
list.c:18:10: error: expected expression
scanf(“%d”,&newnode->x);
       ^
list.c:18:12: error: non-ASCII characters are not allowed outside of literals
      and identifiers
scanf(“%d”,&newnode->x);
         ^
list.c:18:11: error: use of undeclared identifier 'd'
scanf(“%d”,&newnode->x);
        ^
4 errors generated.

我相信,您对 (unicode 引号,U+201C)的预期 "(ascii 引号,U+0022)有疑问。他们真的不是一回事。

您可以详细阅读差异here