This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: vtables local on HP-PA -> even libstdc++ does not link
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: vtables local on HP-PA -> even libstdc++ does not link
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Fri, 27 Oct 2000 16:46:02 -0400 (EDT)
- Cc: Marco dot Franzen at Thyron dot com
> gcc_ss_20001023 cannot link a trivial program against its libstdc++ on the HP-PA.
>
> #include <iostream>
> int main() { cout << "Hello world\n"; return 0; }
There two possible problems:
1) Make sure you have a recent cvs version of binutils to get weak support
that works.
2) Check the include and library paths if 1) doesn't fix the problem.
I compiled and linked with an unintalled version of gcc with:
# /xxx/gnu/gcc-2.97/objdir/gcc/g++ -B/xxx/gnu/gcc-2.97/objdir/gcc/ -nostdinc++ -isystem /xxx/gnu/gcc-2.97/libstdc++ -isystem /xxx/gnu/gcc-2.97/libstdc++/std -isystem /xxx/gnu/gcc-2.97/libstdc++/stl -isystem /xxx/gnu/gcc-2.97/libio -isystem /xxx/gnu/gcc-2.97/objdir/hppa1.1-hp-hpux10.20/libio -L/xxx/gnu/gcc-2.97/objdir/hppa1.1-hp-hpux10.20/libstdc++ -B/usr/local/hppa1.1-hp-hpux10.20/bin/ -B/usr/local/hppa1.1-hp-hpux10.20/lib/ -isystem /usr/local/hppa1.1-hp-hpux10.20/include -g -O3 -fno-implicit-templates -I. -I../../../libio -o vtable vtable.c
# ./vtable
Hello world
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)