RE: [GD-Windows] STL Containers and __declspec(export/import)
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2005-02-07 17:29:18
|
You don't want to be exporting classes with implementation details, anyway. Especially the STL isn't binary compatible at all between revisions. Could you re-formulate the interface for your exported class using a pure abstract base class, and export that using a factory function? Vtable layout is a pretty safe linkage dependency. Cheers, / h+ -----Original Message----- From: gam...@li... [mailto:gam...@li...]On Behalf Of Chris Raine Sent: Sunday, February 06, 2005 2:26 PM To: gam...@li... Subject: [GD-Windows] STL Containers and __declspec(export/import) Hi, If you stick a STL container to a class with __declspec(export) vcc will whine about the STL container not being declared with __declspec(export) attribute. What I found after a bit of doc-digging was that MSDN suggests that you explicitly instantiate the STL container with 'extern'. |