is STL usable with gcc 3.0?
lange92@2067.resnet.uni.edu
lange92@2067.resnet.uni.edu
Thu Aug 16 18:09:00 GMT 2001
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".
More information about the Gcc-help
mailing list