Re: How to control to use the function static linked to a shared library

2006-06-29 Thread Ian Lance Taylor
"Hongbo Li" <[EMAIL PROTECTED]> writes: > Thanks for the information. I will take a look at the manual. When you > talk about the attribute, does that mean I need to change my source > code? Yes. > Do you think the new option -fvisibility=hidden in gcc 4.0.0 would > solve this issue? It would c

RE: How to control to use the function static linked to a shared library

2006-06-29 Thread Hongbo Li
. -Original Message- From: Ian Lance Taylor [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 10:09 PM To: Li, Hongbo [CAR:PK17:EXCH] Cc: gcc@gcc.gnu.org Subject: Re: How to control to use the function static linked to a shared library "Hongbo Li" <[EMAIL PROTECTED]&g

Re: How to control to use the function static linked to a shared library

2006-06-28 Thread Ian Lance Taylor
"Hongbo Li" <[EMAIL PROTECTED]> writes: This question would be more appropriate for the gcc-help mailing list rather than the gcc mailing list. > I currently hit an issue that I would like to use a function > statically linked to a shared library but my program use the same > function from

How to control to use the function static linked to a shared library

2006-06-28 Thread Hongbo Li
Hi, I currently hit an issue that I would like to use a function statically linked to a shared library but my program use the same function from another shared library. Here is what I do: 1. I have toto.cxx that has one function called: toto() {cout << "static toto" << end