Re: Fwd: STL container and shared libs

From: wxie <wxie_at_purdue.edu>
Date: Tue, 27 Dec 2011 13:53:03 -0500


Please neglect the following e-mail. It's caused by a non-initlized static map. Sorry about that.

Cheers
--Wei

On 12/27/2011 11:39 AM, wxie wrote:
>
>
> -------- Original Message --------
> Subject: STL container and shared libs
> Date: Thu, 22 Dec 2011 13:38:35 -0500
> From: wxie <wxie_at_purdue.edu>
> CC: roottalk (Mailing list discussing all aspects of the ROOT
> system.) <roottalk_at_cern.ch>
>
>
>
> 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 - 19:53:14 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 05 2012 - 11:50:02 CET