Overview
Features
Download
Documentation
Community
Add-Ons & Services

poco manifests

Please post support and help requests here.

poco manifests

Postby scottfurry » 12 Jan 2009, 23:17

Is there a way that a shared object (*.so) export more than one class?

e.g.)
POCO_BUILD_MANIFEST_BEGIN(base_obj_A)
POCO_EXPORT_CLASS(ext_obj_A)
POCO_BUILD_MANIFEST_END

POCO_BUILD_MANIFEST_BEGIN(base_obj_B)
POCO_EXPORT_CLASS(ext_obj_B)
POCO_BUILD_MANIFEST_END

...will result in a compiler error due to a redefinition of POCO_BUILD_MANIFEST_BEGIN<Poco::ManifestBase*>.
scottfurry
 
Posts: 1
Joined: 12 Jan 2009, 22:33

Re: poco manifests

Postby alex » 13 Jan 2009, 00:04

scottfurry wrote:Is there a way that a shared object (*.so) export more than one class?


Yes. Use POCO_BEGIN_NAMED_MANIFEST instead of POCO_BEGIN_MANIFEST (macro POCO_BUILD_MANIFEST_BEGIN you are mentioning in your code snippet does not exist)
alex
 
Posts: 1105
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron