S
shahehe
Hi
I have overloaded new in a shared library (s1.so) sucessfully. but I do
not what main program and any other shared library to be able to use
this new operator. In other words, I do not operator new to be globally
used.
I tried some ld options -Bsymbolic as follows
g++ -shared -Wl,-Bysmbolic f1.o -o s1.so
g++ -lstdc++ main.o s1.so -o main
However, if I put -lstdc++ after s1.so, the overloaded new being used
by main (which is not what I want )
Any comments?
thanks
yan
I have overloaded new in a shared library (s1.so) sucessfully. but I do
not what main program and any other shared library to be able to use
this new operator. In other words, I do not operator new to be globally
used.
I tried some ld options -Bsymbolic as follows
g++ -shared -Wl,-Bysmbolic f1.o -o s1.so
g++ -lstdc++ main.o s1.so -o main
However, if I put -lstdc++ after s1.so, the overloaded new being used
by main (which is not what I want )
Any comments?
thanks
yan