Fwd: STL container and shared libs

From: wxie <wxie_at_purdue.edu>
Date: Tue, 27 Dec 2011 11:39:44 -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 Tue Dec 27 2011 - 17:39:55 CET

This archive was generated by hypermail 2.2.0 : Tue Dec 27 2011 - 23:50:01 CET