Re: complex problems

From: Masaharu Goto <gotom_at_hanno.jp>
Date: Tue, 12 Apr 2005 18:52:10 +0900


Hello Jacek,

> ... when I do not load/include complex manually:
> -----------------------------------------------------------------------
> ---
> root [0] complex<double> x;
> Error: no such template complex<double> FILE:(tmpfile) LINE:1
> *** Interpreter error recovered ***

This behavior is expected because <complex> header is not loaded template class complex is not defined.

> ... when I try to "load" the complex.dll library using
> "gSystem->Load()"
> (I guess that it does NOT recognize the ".dll" extension as a valid
> shared
> library extension, and more ... it does not see that the "full" paths
> to
> the library beginning with a "/" has been given and it tries to find
> the
> library anywhere in the $LD_LIBRARY_PATH.):
> -----------------------------------------------------------------------
> ---
> root [0] gSystem->Load("/.../cint/stl/complex.dll")
> Error in <TUnixSystem::DynamicPathName>: /.../cint/stl/complex.dll[.so
> | .sl | .dl | .a] does not exist in .:/.../lib::...:/usr/local/lib:
> (int)(-1)
> -----------------------------------------------------------------------
> ---

I am not sure about gSystem->Load() API. So, I can not comment this. But, I recommend to load "complex" header instead of complex.dll. Inside there, complex.dll is loaded.

> ... when I try to "load" the complex.dll library using ".L" (no
> complex<float> in complex.dll,

I left complex<float> intentionally for some reason. I understand this is inconvenient for users. I'll think about changing this strategy.

> note also the output of "root [2] x"):
> -----------------------------------------------------------------------
> ---
> root [0] .L /.../cint/stl/complex.dll
> root [1] complex<double> x;
> root [2] x
> (class complex<double>)160952168
> root [3] cout << x << endl;
> Error: operator<< not defined for basic_ostream<char,char_traits<char>
> > FILE:(tmpfile) LINE:1
> *** Interpreter error recovered ***

streamer operator is missing in complex.dll , indeed. Let me try to fix this too.

Thank you
Masa Goto Received on Tue Apr 12 2005 - 11:49:51 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET