Thank you!
Now it compiles fine.
Now, when I build dll that is dynamically loaded scripting emgine based on CINT7, it gives warnings:
[code]1>c:\cint\reflex\inc\reflex\kernel.h(382) : warning C4275: non dll-interface class ‘std::exception’ used as base for dll-interface class 'Reflex::RuntimeError’
1> e:\program files (x86)\microsoft visual studio 8\vc\include\exception(95) : see declaration of 'std::exception’
1> c:\cint\reflex\inc\reflex\kernel.h(382) : see declaration of 'Reflex::RuntimeError’
1>c:\cint\reflex\inc\reflex\kernel.h(387) : warning C4251: ‘Reflex::RuntimeError::fMsg’ : class ‘std::basic_string<_Elem,_Traits,_Ax>’ needs to have dll-interface to be used by clients of class 'Reflex::RuntimeError’
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits,
1> _Ax=std::allocator
1> ]
1>c:\cint\reflex\inc\reflex\internal\typename.h(139) : warning C4251: ‘Reflex::TypeName::fName’ : class ‘std::basic_string<_Elem,_Traits,_Ax>’ needs to have dll-interface to be used by clients of class ‘Reflex::TypeName’
1>c:\cint\reflex\inc\reflex\internal\scopename.h(125) : warning C4251: ‘Reflex::ScopeName::fName’ : class ‘std::basic_string<_Elem,_Traits,_Ax>’ needs to have dll-interface to be used by clients of class ‘Reflex::ScopeName’
1>c:\cint\reflex\inc\reflex\internal\typetemplatename.h(141) : warning C4251: ‘Reflex::TypeTemplateName::fName’ : class ‘std::basic_string<_Elem,_Traits,_Ax>’ needs to have dll-interface to be used by clients of class ‘Reflex::TypeTemplateName’
1>c:\cint\reflex\inc\reflex\internal\memberbase.h(333) : warning C4251: ‘Reflex::MemberBase::fName’ : class ‘std::basic_string<_Elem,_Traits,_Ax>’ needs to have dll-interface to be used by clients of class ‘Reflex::MemberBase’
1>c:\cint\reflex\inc\reflex\internal\membertemplatename.h(141) : warning C4251: ‘Reflex::MemberTemplateName::fName’ : class ‘std::basic_string<_Elem,_Traits,_Ax>’ needs to have dll-interface to be used by clients of class ‘Reflex::MemberTemplateName’[/code]
And, this resulting scripting engine still cannot import from some dll (as descibed in first post here in 1. )
P.S. It does not work with CINT7 interpreter command prompt either:
X runme.cxx
where file runme.cxx is:
[code]
extern “ScriptCollections.dll”
{
void * MapStr2PtrCreate();
}
void runme()
{
void * mapPairToIndex = MapStr2PtrCreate();
}[/code]
Again, this works fine with CINT5