compiler-errors - g++构建输出垃圾

标签 compiler-errors g++

将make用于C++项目时,编译器将输出以下错误和警告:

../include/Position.h:63:11: error: ?.nterprocess?.in namespace ?.oost?.does not name a type
../include/Position.h:65:11: error: ?.nterprocess?.in namespace ?.oost?.does not name a type
../include/Position.h:67:11: error: ?.nterprocess?.in namespace ?.oost?.does not name a type
../include/Position.h:72:78: error: ?.hmManager?.has not been declared
../include/Position.h:89:3: error: ?.ositionMap?.does not name a type
../include/Position.h:101:3: error: ?.MemAllocator?.does not name a type
../include/Position.h:102:3: error: ?.ositionMap?.does not name a type
../include/Position.h:103:3: error: ?.ositionMap?.does not name a type

这是怎么回事?如何再次获得此输出?

最佳答案

问题可能出在您的终端仿真器上-您是否使用SSH?

由于PuTTY中的字符集翻译,我经常看到这种情况。它默认为“Latin-1,West Europe”,但服务器似乎正在使用UTF-8。更改此设置似乎可以解决我的问题。

您的编译器可能是输出非ASCII字符的唯一内容,因此这是识别此问题的最常见位置。

关于compiler-errors - g++构建输出垃圾,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20371274/

相关文章:

C++ 预期主表达式编译错误

Java 类型转换在 System.out.println 调用中给出编译错误

c++ - 如何可靠地让析构函数覆盖缓冲区而不在 C++ 中对其进行优化

C++悬挂指针/深拷贝/浅拷贝混淆

c++ - g++ 拒绝,clang++ 接受 : foo(x) ("bar") ("baz");

c++ - 函数中的 while 循环出现 ‘)’ token 错误之前的预期主表达式

java - 尝试编译代码 - 无法找到或加载主类 a

c++ - boost & g++ : no matching function for call to 'current_path()'

objective-c - ios 不允许使用 arc 将间接指针隐式转换为指向 id 的 objective-c 指针

c++ - 配置gmp时出错