* error call of overloaded strlen is ambiguous ERROR
@ 2001-01-16 13:08 sherry
0 siblings, 0 replies; only message in thread
From: sherry @ 2001-01-16 13:08 UTC (permalink / raw)
To: gcc-help
Hi,
Background
I have downloaded gcc 2001/01/08 snapshot
and configured and compiled it with these flags:
/usr/src/redhat/BUILD/gcc-20010108.src/configure
--prefix=/usr/src/redhat/BUILD/gcc-20010108.install
--enable-libstdcxx-v3
--enable-long-long
--enable-cshadow-headers
--enable-namespaces
--enable-cxx-flags='-fhonor-std'
For compiling my cpp code I use -fhonor-std also.
Problem:
When compiling the code compiler complains with the following error:
call of overloaded _some_function_like_strlen is ambiguous
/usr/include/string.h candidates are: unsigned int strlen(const char *)
/usr/local/include/g++-v3 /bits/std_cstring.h .... size_t
std::strlen(const char *)
So it is confused about which function to choose.
Question
How can I tell the compiler that it should use the files
in /usr/local/include/g++-v3/bits ?
thx
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-01-16 13:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-16 13:08 error call of overloaded strlen is ambiguous ERROR sherry
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).