conflict in string.h ...

Hi all,

any ideas about the source of that problem??

Armin

QCC -DHAVE_CONFIG_H -I. -I. -I… -I…/gcvs -I…/gcvs/src -I/.
-I…/cvstree -I…/rf -Wall -I/usr//include/gtk-1.2
-I/usr//include/glib-1.2 -I
/usr//lib/glib/include -I/opt/X11R6/include -DqUnix -DqGTK
-I/opt/X11R6/include -DqCvsDebug=0 -g -O2 -c -o CvsArgs.o test -f 'CvsArgs.cpp' || echo './'CvsArgs.cpp
CvsArgs.cpp: In method void CvsArgs::print(const char * = 0)': CvsArgs.cpp:201: call of overloaded strchr (UStr &, char)’ is ambiguous
/usr/include/string.h:130: candidates are: char * std::strchr(char *, int)
/usr/include/string.h:50: const char * std::strchr(const
char *, int)
CvsArgs.cpp:210: call of overloaded strchr (UStr &, char)' is ambiguous /usr/include/string.h:130: candidates are: char * std::strchr(char *, int) /usr/include/string.h:50: const char * std::strchr(const char *, int) cc: /usr/lib/gcc-lib/ntox86/2.95.3/cc1plus error 33 make[2]: *** [CvsArgs.o] Error 1 make[2]: Leaving directory /root/NewDownloads/gcvs-1.0/common’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/NewDownloads/gcvs-1.0’
make: *** [all] Error 2

Check that it’s not wrapping a extern “C” around the #include <string.h>

Armin Steinhoff <a-steinhoff@web.de> wrote:

Hi all,

any ideas about the source of that problem??

Armin

QCC -DHAVE_CONFIG_H -I. -I. -I… -I…/gcvs -I…/gcvs/src -I/.
-I…/cvstree -I…/rf -Wall -I/usr//include/gtk-1.2
-I/usr//include/glib-1.2 -I
/usr//lib/glib/include -I/opt/X11R6/include -DqUnix -DqGTK
-I/opt/X11R6/include -DqCvsDebug=0 -g -O2 -c -o CvsArgs.o test -f 'CvsArgs.cpp' || echo './'CvsArgs.cpp
CvsArgs.cpp: In method void CvsArgs::print(const char * = 0)': CvsArgs.cpp:201: call of overloaded strchr (UStr &, char)’ is ambiguous
/usr/include/string.h:130: candidates are: char * std::strchr(char *, int)
/usr/include/string.h:50: const char * std::strchr(const
char *, int)
CvsArgs.cpp:210: call of overloaded strchr (UStr &, char)' is ambiguous /usr/include/string.h:130: candidates are: char * std::strchr(char *, int) /usr/include/string.h:50: const char * std::strchr(const char *, int) cc: /usr/lib/gcc-lib/ntox86/2.95.3/cc1plus error 33 make[2]: *** [CvsArgs.o] Error 1 make[2]: Leaving directory /root/NewDownloads/gcvs-1.0/common’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/NewDownloads/gcvs-1.0’
make: *** [all] Error 2


cburgess@qnx.com