traits编译错误

拉卡尼休 2007-04-11 09:29:19
请大家帮忙看看这个奇怪的编译错误:
make -f mds.make
g++ -g -c -I. -I/usr/local/globus/globusroot/include -I/usr/local/globus/globusroot/include/gcc32dbg Broker.C -o Broker.o
In file included from /usr/include/g++-3/std/bastring.h:36,
from /usr/include/g++-3/string:6,
from Broker.C:7:
/usr/include/g++-3/std/straits.h: In function `char
*string_char_traits<char>::move (char *, const char *, unsigned int)':
/usr/include/g++-3/std/straits.h:129: cannot convert `bcopy(s2, s1, n)'
from type `void' to type `char *'
make: *** [Broker.o] Error 1
谢谢。
以下是straits.h的128和129行:
static char_type* move (char_type* s1, const char_type* s2, size_t n)
{ return (char_type*) memmove (s1, s2, n); }
...全文
187 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
拉卡尼休 2007-04-11
  • 打赏
  • 举报
回复
刚看一篇文章,其中一句话,看了太受打击了:
“...但是traits导致的编译错误提示实在是太可怕了,我非常怀疑有哪个正常人可以从这些错误提示推测出自己错在哪里。”
这个不是太了解,希望不是一回事。

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧