vermarajeev
31st October 2006, 10:11
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
class COMMON_DLL_API ConnectionTable
{
public:
struct CtRow
{
};
};
For the above class I used the below code and it works fine
template class COMMON_DLL_API std::allocator<CtRow*>;
template class COMMON_DLL_API std::vector<CtRow*, std::allocator<CtRow*> >;
std::vector<CtRow*> table;
Now my problem is with this code
template<class T> class COMMON_DLL_API SynsupVector : public std::vector<T>
{
};For the above code I still get the same warnings. I tried using the same above
syntaxs but get compile time errors if done so.
Any help will be highly appreciated
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
class COMMON_DLL_API ConnectionTable
{
public:
struct CtRow
{
};
};
For the above class I used the below code and it works fine
template class COMMON_DLL_API std::allocator<CtRow*>;
template class COMMON_DLL_API std::vector<CtRow*, std::allocator<CtRow*> >;
std::vector<CtRow*> table;
Now my problem is with this code
template<class T> class COMMON_DLL_API SynsupVector : public std::vector<T>
{
};For the above code I still get the same warnings. I tried using the same above
syntaxs but get compile time errors if done so.
Any help will be highly appreciated