Hi guys,
I'm creating a dll for my project, but having problem with
this famous warning
warning C4251: 'std::_Vector_val<_Ty,_Alloc>::_Alval' : class 'std::allocator<_Ty>'
needs to have dll-interface to be used by clients of class 'std::_Vector_val<_Ty,_Alloc>'
I had a good look at google and found some solutions which were quite satifying
For the above class I used the below code and it works fineCode:
class COMMON_DLL_API ConnectionTable { public: struct CtRow { }; };
Now my problem is with this codeCode:
template class COMMON_DLL_API std::allocator<CtRow*>; template class COMMON_DLL_API std::vector<CtRow*, std::allocator<CtRow*> >; std::vector<CtRow*> table;
For the above code I still get the same warnings. I tried using the same aboveCode:
template<class T> class COMMON_DLL_API SynsupVector : public std::vector<T> { };
syntaxs but get compile time errors if done so.
Any help will be highly appreciated