STL container and shared libs

From: wxie <wxie_at_purdue.edu>
Date: Thu, 22 Dec 2011 13:38:35 -0500


Hi all

I had a code containing the following:

   map<int, int> runID_vs_seq

I then compile the code to get a shared lib called "test.so"

When trying to load the "test.so", i.e.
gSystem->Load("test.so").

I got "map<int, int> runID_vs_seq" undefined. Is there a another lib one can load?

I know one can get around this by putting "gSystem->Load("test.so")" into another macro, e.g. run_test.C and run the macro in the compiled mode, i.e. .x run_test.C++, but this is very inconvenient.

Thanks
--Wei Received on Thu Dec 22 2011 - 19:38:45 CET

This archive was generated by hypermail 2.2.0 : Tue Dec 27 2011 - 17:50:02 CET