This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: is STL usable with gcc 3.0?


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".



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]