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]
Other format: [Raw text]

Problem Creating Shared Library


Hi,

I m using gcc 3.3.3 11.11/32bit on hppa2.0w.

I have created xaa.cpp
#include<iostream.h>

void name()
{
cout<<"Name"<<endl;
}

Then compile it using
g++ -c -g xaa.cpp
which does fine
now when i create shared library of this using
g++ -g -shared -fPIC -o xaa.so xaa.o
results in
/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)" in input file "xaa.o"
collect2: ld returned 1 exit status



Tryed this g++ -c -fPIC -shared xaa.cpp g++ -fPIC -shared -o xaa.so xaa.o

and got

/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "__gxx_personality_sj0" in input file "../HPUXGCC3.3.3-32/pa20_32/lib/libstdc++.a(ios.o)"
collect2: ld returned 1 exit status



How can i resolve this???


Rgds
Lalit

_________________________________________________________________
Thinking of a vacation? Get all the best deals. http://www.msn.co.in/Travel/ Right here at MSN Travel!



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