Subject: Re: Problem with G++ Compiler - Please Help!
To: Peter Teichmann <teich-p@Rcs1.urz.tu-dresden.de>
From: Richard Earnshaw <rearnsha@arm.com>
List: port-arm32
Date: 11/13/1998 11:08:48
> Hi,
>
> when trying to compile some really simple c++ programs (in fact they use
> only fstream and iostream) I have a little problem. When I start the
> compiled program I get an error:
>
> /usr/libexec/ld.so: Undefined symbol "_re_compile_pattern" called from
> reflect: /usr/lib/libg++.so.4.0 at 0x2005a67c
>
> The command line when compiling was:
>
> g++ -O reflect.cc -o reflect
>
> When compiled using:
>
> gcc -O reflect.cc -o reflect -lstdc++
>
> the program works fine, but I think that is no real good solution.
> I am using the snapshot from 1. October 1998, but I there was no libg++
> supplied with it so my libg++ is an older one.
>
> What is wrong here? Thank you very much for you help!
libg++ is history; it is no-longer supported by the FSF, and I believe
NetBSD is dropping support for it similarly. Get used to not using it.
I don't know why stdc++ is not being automatically linked in.
Richard.