g++ 没有那个文件或目录?
g++ No such file or directory?
我写了:
g++ -std=c++11 –DNDEBUG –Wall *.cpp
但我收到以下错误:
-bash-4.2$ g++ -std=c++11 –DNDEBUG –Wall *.cpp
g++: error: –DNDEBUG: No such file or directory
g++: error: –Wall: No such file or directory
这是为什么?
您使用的字符 –
而不是 -
printf("%d\n%d\n", '–','-' );
输出:
14844051
45
我写了:
g++ -std=c++11 –DNDEBUG –Wall *.cpp
但我收到以下错误:
-bash-4.2$ g++ -std=c++11 –DNDEBUG –Wall *.cpp
g++: error: –DNDEBUG: No such file or directory
g++: error: –Wall: No such file or directory
这是为什么?
您使用的字符 –
而不是 -
printf("%d\n%d\n", '–','-' );
输出:
14844051
45