I need help!!! I have a file that looks like:

#include <iostream.h>

int main()
{
    cout << "Hello world" << endl;
    return 0;
}

and each time I run hello after compiling with:

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?

Thanks


Benjamin S. Vera-Tudela
Software Engineer - IBM e-boss
e-business and operating system solutions
Phone: (512)-838-8246
E-Mail: [EMAIL PROTECTED]



---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to