macOS V10.15.4
macOS 下使用命令 g++ 编译 C++ 文件错误提示 /usr/bin/locale: error: source file is not valid UTF-8
hello.cpp 文件
#include <iostream>
using namespace std;
int main()
{
cout << "hello word" << endl;
return 0;
}
编译
g++ hell.cpp
提示错误
macOS V10.15.4
macOS 下使用命令 g++ 编译 C++ 文件错误提示 /usr/bin/locale: error: source file is not valid UTF-8
hello.cpp 文件
#include <iostream>
using namespace std;
int main()
{
cout << "hello word" << endl;
return 0;
}
编译
g++ hell.cpp
提示错误
3 回答840 阅读✓ 已解决
1 回答2.2k 阅读
1 回答822 阅读✓ 已解决
2 回答1.1k 阅读
1 回答1.2k 阅读
2 回答1.9k 阅读
1 回答648 阅读
it is
CPLUS_INCLUDE_PATH
environment variables error.Setting
export CPLUS_INCLUDE_PATH=":/usr/local/include"
CPLUS_INCLUDE_PATH 环境变量设置问题
配置
export CPLUS_INCLUDE_PATH=":/usr/local/include"