This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Compilation Errors with GCC on HPUX 11
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Compilation Errors with GCC on HPUX 11
- From: "Bruno Beaumont" <beaumont at sesinsud dot com>
- Date: Mon, 22 Jan 2001 19:05:56 +0100
Hi,
I try to compile the following code with gcc 2.95.2 on HPUX v11.00 64 bits :
// #include <stdio.h>
#include <set>
int main()
{
set<int> setInt;
setInt.insert(1);
setInt.insert(2);
setInt.insert(3);
return 0;
}
If I comment out the line "#include <stdio.h>", gcc returns these errors:
In file included from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/../../../../include/g++-3/
stl_algobase.h:48,
from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/../../../../include/g++-3/
stl_tree.h:56,
from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/../../../../include/g++-3/
set:31,
from tst-gcc.cpp:8:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/string.h:29:
warning: declaration of `int memcmp(const void *, const void *, long
unsigned int)'
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/string.h:29:
warning: conflicts with built-in declaration `int memcmp(const void *,
const void *, unsigned int)'
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/string.h:85:
warning: declaration of `void * memcpy(
void *, const void *, long unsigned int)'
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/string.h:85:
warning: conflicts with built-in declar
ation `void * memcpy(void *, const void *, unsigned int)'
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/string.h:93:
warning: declaration of `size_t strlen(
const char *)'
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/string.h:93:
warning: conflicts with built-in declar
ation `unsigned int strlen(const char *)'
In file included from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/new.h:6,
from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/../../../../include/g++-3/
stl_algobase
.h:52,
from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/../../../../include/g++-3/
stl_tree.h:5
6,
from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/../../../../include/g++-3/
set:31,
from tst-gcc.cpp:8:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/new:28: `operator
new' takes type `size_t' as first
parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/new:29: `operator
new' takes type `size_t' as first
parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/new:32: `operator
new' takes type `size_t' as first
parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/new:33: `operator
new' takes type `size_t' as first
parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/new:38: `operator
new' takes type `size_t' as first
parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/new:39: `operator
new' takes type `size_t' as first
parameter
Anyone has an idea ?
Thanks