c++ - 什么是 'required from here' 错误

标签 c++ eclipse mingw

它在我的 Eclipse Problems View 中。代码编译正常,但有一个错误提示“required from here”,指向一些 boost 头文件和行 state_data const current_state=interlocked_compare_exchange(&state,new_state,old_state);

我不喜欢出现错误或警告。有人知道那是什么吗?

最佳答案

此行为是 eclipse CDT 错误解析器的错误:https://bugs.eclipse.org/bugs/show_bug.cgi?id=108720 实际上这个错误是一个警告,boost 对此负责。您可以禁用这种特殊类型的警告以忽略它们。

关于c++ - 什么是 'required from here' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14779839/

相关文章:

java - 类 'Lcom/google/android/gms/gcm/GcmReceiver;' 的链接失败

c++ - Qt5 中的拆分器是不可见的

c++ - boost 字符串的分配性能

c++ - gem5 模拟 : error when goodbye. sayGoodbye(myName) 调用

java - 从 Maven 存储库加载 log4j

eclipse - 如何在逆时针/Eclipse中的Leiningen项目中顺利运行测试?

git - 在 msysgit 中运行 MinGW/MSYS 工具

c - 如何在 Windows 中使用 crypt(3)?

C++ 中的 java "this"

Android JNI ndk-构建错误 : 'jni' has not been declared