This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc 2.95.2 STL bug on HP-UX 11.0
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc 2.95.2 STL bug on HP-UX 11.0
- From: jjessel at amadeus dot net
- Date: Mon, 13 Mar 2000 16:30:03 +0100
- cc: bug-gcc at gnu dot org
Hello,
I'm running gcc (version 2.95.2 19991024) on HP-UX 11.0 to compile the following
code file (gccHP11_BUG.cpp):
#include <iostream>
#include <list>
#include <string>
int main(int argc, char *argv[])
{
list<int> int_list;
string message = "list size : ";
int_list.push_back(1);
cout << message << int_list.size() << endl;
return 0;
}
the compilation command is
>gcc gccHP11_BUG.cpp
and here are the error messages:
In file included from
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/../../../../include/g++-3/stl_algobase.h:48,
from
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/../../../../include/g++-3/list:30,
from gccHP11_BUG.cpp:1:
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/string.h:29:
warning: declaration of `int memcmp(const void *, const void *, long unsigned
int)'
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/string.h:29:
warning: conflicts with built-in declaration `int memcmp(const void *, const
void *, unsigned int)'
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/string.h:85:
warning: declaration of `void * memcpy(void *, const void *, long unsigned int)'
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/string.h:85:
warning: conflicts with built-in declaration `void * memcpy(void *, const void
*, unsigned int)'
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/string.h:93:
warning: declaration of `size_t strlen(const char *)'
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/string.h:93:
warning: conflicts with built-in declaration `unsigned int strlen(const char *)'
In file included from
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/new.h:6,
from
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/../../../../include/g++-3/stl_algobase.h:52,
from
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/../../../../include/g++-3/list:30,
from gccHP11_BUG.cpp:1:
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/new:28:
`operator new' takes type `size_t' as first parameter
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/new:29:
`operator new' takes type `size_t' as first parameter
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/new:32:
`operator new' takes type `size_t' as first parameter
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/new:33:
`operator new' takes type `size_t' as first parameter
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/new:38:
`operator new' takes type `size_t' as first parameter
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/new:39:
`operator new' takes type `size_t' as first parameter
In file included from
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/../../../../include/g++-3/string:6,
from gccHP11_BUG.cpp:2:
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/../../../../include/g++-3/std/bastring.h:112:
`operator new' takes type `size_t' as first parameter
In file included from
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/../../../../include/g++-3/std/bastring.h:652,
from
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/../../../../include/g++-3/string:6,
from gccHP11_BUG.cpp:2:
/tools/gcc_2.95.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/../../../../include/g++-3/std/bastring.cc:32:
`operator new' takes type `size_t' as first parameter
Please, do you know how can this problem be solved?
Thank you to keep me informed.
J-F JESSEL.