This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: is STL usable with gcc 3.0?
- To: Brent Phillips <brent at lyrastudios dot com>
- Subject: Re: is STL usable with gcc 3.0?
- From: <lange92 at 2067 dot resnet dot uni dot edu>
- Date: Thu, 16 Aug 2001 14:51:24 -0500 (CDT)
- cc: <gcc-help at gcc dot gnu dot org>
Isn't the STL for C++??
On Thu, 16 Aug 2001, Brent Phillips wrote:
> ...the latest is problems getting STL to work with gcc
> 3.0. On my system (RedHat Linux, RedHat Linux 2.2.18), a basic "hello
> world" that uses STL crashes in a variety of ways. Take your basic "hello
> world" program...
<snip "neuter" code which cannot be distinguished between C and C++>
> yields the error
> /tmp/cctISmpm.o: In function `__FRAME_BEGIN__':
> /tmp/cctISmpm.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
> collect2: ld returned 1 exit status
"gxx" everywhere I've seen it referred to (makefiles, mostly) is talking
about C++.
further, the extension .cpp would suggest it's C++. Try "g++ hello.cpp".