Segv with multiple #include <vector>

Hi,
root cvs, win32gdk, macro

#include <vector> testmacro() { std::vector<Int_t> vec; }
and running

root [0] .x testmacro.C root [1] .x testmacro.C
gives me a segv with Warning: template pair duplicate definition1FILE:C:\root\cint\stl\_pair.h LINE:2 Warning: template vector duplicate definitionNE:35:C:\root\cint\stl\_vector.h LI (Yes, the long line problem with win32gdk is not fixed yet.) How can I avoid that? Am I doing something wrong here?
Axel.

Hi Axel,

Did you generate the dictionary for vector<Int_t> (for example by doing in $ROOTSYS, gmake cintdlls)?

Cheers,
Philippe

Hi Philippe,
uh, interpreting the headers isn’t supposed to work? No, I didn’t generate the cintdlls. Hmm. It would be nice if there was a way to tell the stupid user like me to generate the dlls rather than letting root seg fault…

Axel.

Hi,

It should work. This warning however, can be ignored (in this case). We will try to remove it.

Cheers,
Philippe.