RE: STL Containers and __declspec(export/import)
"Jon Watte" <[email protected]> Mon, 7 Feb 2005 09:29:48 -0800
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected] [mailto:[email protected]]On Behalf Of Chris Raine Sent: Sunday, February 06, 2005 2:26 PM To: [email protected] 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'. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Gamedevlists-windows mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555