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); }