title: How to export pure virtual functions from a DLL in C++?
body: <p>I am having a strange problem that no pure virtual function is exporting from a DLL. DLL compiles and outputs as .dll file to the directory . But it doesn't produce .lib file.</p>
  
  <p>If I give definition and it no longer remians as pure virtual, after that happily it creates .lib file.</p>
  
  <p>I need to implement factory pattern for which I need to seperate interfaces and implementations. My factory implementation and other interfaces that use wanted .dll(of whome .lib file is not producing) need to use that exported function and when I use those functions they produce linking errors...</p>
  
  <p>such as "error LNK2011: unresolved external symbol "public:......."</p>
  
  <p>Have any one idea how to export pure virtual functions so that they can be implemented for other exe's and dll's</p>
  
  <p>Regards
  Usman</p>