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


_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to