Subject: | |
From: | |
Reply To: | |
Date: | Mon, 20 Feb 2006 09:20:44 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Can anyone help me. I recently installed the gcc 3.4.2 binaries from the
HP jazz.external.hp.com site. I installed all.bin, threads.bin, and the
GNU tools. It seems I broke the compiler because now I can't compile even
a simple hello.cpp program that references a standard c++ library like
<string>: (compiles fine w/out <string>)
#include <stdlib.h>
#include <stdio.h>
#include <string>
int main()
{
printf("hello\n");
return 0;
}
shell/iX> gcc hello.cpp -o hello.a -lpthread
output:
In file included from /usr/local/include/c++/3.3.1/hppa1.0-hp-
mpeix/bits/gthr-default.h:37,
from /usr/local/include/c++/3.3.1/hppa1.0-hp-
mpeix/bits/gthr.h:98,
from /usr/local/include/c++/3.3.1/hppa1.0-hp-
mpeix/bits/c++io.h:37,
from /usr/local/include/c++/3.3.1/bits/fpos.h:44,
from /usr/local/include/c++/3.3.1/bits/char_traits.h:46,
from /usr/local/include/c++/3.3.1/string:47,
from hello.cpp:3:
/usr/include/pthread.h:636: error: type specifier omitted for parameter `
sigset_t'
/usr/include/pthread.h:636: error: parse error before `*' token
In file included from /usr/local/include/c++/3.3.1/bits/fpos.h:45,
from /usr/local/include/c++/3.3.1/bits/char_traits.h:46,
from /usr/local/include/c++/3.3.1/string:47,
from hello.cpp:3:
/usr/local/include/c++/3.3.1/cwchar:54:19: wchar.h: No such file or
directory
In file included from /usr/local/include/c++/3.3.1/bits/stl_algobase.h:67,
from /usr/local/include/c++/3.3.1/memory:54,
from /usr/local/include/c++/3.3.1/string:48,
from hello.cpp:3:
/usr/local/include/c++/3.3.1/cstdlib:92: error: `thd_abort' not declared
/usr/local/include/c++/3.3.1/cstdlib:94: error: `thd_atexit' not declared
/usr/local/include/c++/3.3.1/cstdlib:101: error: `thd_exit' not declared
/usr/local/include/c++/3.3.1/cstdlib:110: error: `thd_qsort' not declared
hello.cpp: In function `int main()':
hello.cpp:9: error: `thd_printf' undeclared (first use this function)
hello.cpp:9: error: (Each undeclared identifier is reported only once for
each
function it appears in.)
Any ideas what direction I can take to resolve?
Thanks.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|