On Fri, 25 Feb 2000 [EMAIL PROTECTED] wrote:
> g++ hello.cpp -o hello
>
> I get a segmentation fault caused by endl (flush). Now, if I compile as:
>
> g++ hello.cpp -o hello /lib/libc.so.6
>
> things work as you would expect. A similar problem happens if I try to
> create pthreads for example. What's going on? How can I tell g++ to pick
> libc.so.6 as a default? Somebody mentioned a spec file in glibc's
> directory, but I am not sure what to do with it.
>
> Now, on both cases, if I run ldd to see the list of dependencies hello has,
> both show libc.so.6. However, in my /lib directory, I have both a libc.so.5
> and a libc.so.6 file. All this started happening when I upgraded libraries.
> Can anybody help me solve this?
You probably need to rebuild libg++ with the new libc.
Adam
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]