help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to build a dynamic library in which a global object defined in its


From: dbtouch
Subject: How to build a dynamic library in which a global object defined in its caller is referenced
Date: Mon, 23 Mar 2009 10:07:36 -0700 (PDT)
User-agent: G2/1.0

Dear g++ Users,

I have a question on dynamic library:

in the dynamic library, I want to reference a global object which is
defined in its caller, how can I achieve that? What link options I
should use? If you can post some code example, it will be very
helpful. Thanks in advance!

// libMy.so
myMap["key"]="hello world"; // myMap is defined in the caller
...

dbtouch




reply via email to

[Prev in Thread] Current Thread [Next in Thread]