cur*_*ion 6 c++ eclipse eclipse-cdt
以下C++应用程序在Eclipse CDT中成功编译和运行,但IDE仍报告错误说明:
Could not resolve function wprintf
Run Code Online (Sandbox Code Playgroud)
#include <stdio.h>
#include <wchar.h>
int main()
{
wprintf(L"Hello world");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
目录/usr/include(wchar.h驻留位置)肯定列在Include路径中,否则应用程序将无法编译.在wprintf报告中击中F3 :
Could not find symbol 'wprintf' in index
Run Code Online (Sandbox Code Playgroud)
这是我的设置:
有谁知道如何让Eclipse CDT正确解析这个功能?
小智 7
我在Junora Release上遇到了同样的问题,在Fedora 14上构建id:20120510-1218.解决索引问题:导航到首选项 - > c/c ++ - >编辑器 - >索引器 - >取消选中"允许启发式解析包含"
-祝一切顺利
| 归档时间: |
|
| 查看次数: |
11137 次 |
| 最近记录: |