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

Qt Code:
  1. class COMMON_DLL_API ConnectionTable
  2. {
  3. public:
  4. struct CtRow
  5. {
  6.  
  7. };
  8.  
  9. };
To copy to clipboard, switch view to plain text mode 
For the above class I used the below code and it works fine
Qt Code:
  1. template class COMMON_DLL_API std::allocator<CtRow*>;
  2. template class COMMON_DLL_API std::vector<CtRow*, std::allocator<CtRow*> >;
  3. std::vector<CtRow*> table;
To copy to clipboard, switch view to plain text mode 
Now my problem is with this code
Qt Code:
  1. template<class T> class COMMON_DLL_API SynsupVector : public std::vector<T>
  2. {
  3.  
  4. };
To copy to clipboard, switch view to plain text mode 
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