|
Boost Users : |
Subject: [Boost-users] Create Module with boost
From: derleader __ (derleader_at_[hidden])
Date: 2010-12-29 13:38:22
Ok, thank you. Is there another way than binary modules loaded at run-time?
What are the options for creating modular applications with boost?
Regards
Peter
First, at the moment there is no standard way to do this. Second, there is a library that is meant to do this and will be proposed to boost once complete enough. It's boost::extension :
http://boost-extension.redshoelace.com/docs/boost/extension/index.html
Now, (correct me if I'm wrong), the author said some months/years ago that he cant continue developpement because of language limitations that C++0x will certainly fix (I'm not sure what but I guess it's about ABI?).
Anyway, it seems to be working and used by some people, but not as complete as the author would like too. (and the documentation could be improved I think).
There are other libraries providing the same functionallity, like Poco's Shared Libraries (
http://pocoproject.org/slides/120-SharedLibraries.pdf
). Boost::extension and Poco Shared Libraries are cross-platform.
Other than that and calling platform-specific API functions, there is no boost library that allows binary modules loaded at run-time. But I guess that's already helping.
On Wed, Dec 29, 2010 at 18:20, derleader __ derleader_at_[hidden] > wrote:
>>
Hi,
>>
Can you tell me how I can create a modules with boost?
>
>
>You've already asked that on this thread:
> http://thread.gmane.org/gmane.comp.lib.boost.user/64732
>
>but haven't clarified your question.
>_______________________________________________
>Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Sorry, I deleted the last message by mistake.
>
I'm new to Boost and I'm new C++ developer. I'm looking for examples how
> to write application divided into modules using Boost. Is there already done
> example? I need to see how to write C++ module.
What do you mean by saying "module"? Compile-time unit or a binary
module that you'll load in run-time?
I'm not sure what are the differences between
compile-time unit and binary module.
I suppose that the best for me will be to use binary module which will be loaded in run-time.
Is there example of such modules? I think that the best way for communication between the modules will be to user mapping share memory. What can you advice me?
Regards
Peter
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net