未解决的函数调用 [英] unresolved function call
本文介绍了未解决的函数调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在安装MINGW的Eclipse Indigo IDE中工作.但是,当我尝试调用诸如strlen(),strcmp()之类的字符串函数时,它给出了以下错误:-说明资源路径位置类型
无法解析功能"strlen" dir.cpp/dir/src第73行语义错误
请帮我解决.
谢谢.
I am working in eclipse Indigo IDE with MINGW installed .But when i am trying to call string functions like strlen(),strcmp(),its gives an error as:-Description Resource Path Location Type
Function ''strlen'' could not be resolved dir.cpp /dir/src line 73 Semantic Error
Please help me resolve it.
Thank You.
推荐答案
已解决.早先是#include< string>
我将其更改为#include< string.h>
Solved.Earlier it was #include <string>
i changed it to #include <string.h>
strlen
在libc.a
中定义 它应该自动完成,但要确保-lc
在链接器的命令行中.我对C ++的Eclipse不熟悉,但是某处可能有一个项目属性.将-lc
添加到其他库"设置中.
strlen
is defined in libc.a
It should be done automatically, but make sure-lc
is in the command line for the linker. I am not familiar with Eclipse for C++, but there is probably a project properties somewhere. Add-lc
into the Additional Libraries setting.
这篇关于未解决的函数调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文