public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [HELP]: Name conflicting in dynamically loading shared libraries
@ 2011-03-17  2:32 Jovi Zhang
  2011-03-17  2:51 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Jovi Zhang @ 2011-03-17  2:32 UTC (permalink / raw)
  To: gcc, gcc-help

Hi,
   I encounter a problem about several .so library linked by a
problem, when a library A executing call function which source at same
.so, but strangly it jump to another library B address with same
function name, then program crash.

   Why library A don't find function name in itself address space
firstly? because compiled using option -fPIC? and how can we avoid
this problem except change function name?
   I know C++ namespace can do this, but it only suit for C++, how
about C face these problem? Can we use some gcc option help me?

   Thanks for your time.

.jovi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-17  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-17  2:32 [HELP]: Name conflicting in dynamically loading shared libraries Jovi Zhang
2011-03-17  2:51 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).