Home » Community » Newbie corner » U++ as shared dll
U++ as shared dll [message #44732] |
Tue, 09 June 2015 16:52  |
kaka
Messages: 1 Registered: June 2015
|
Junior Member |
|
|
Hello,
Sorry for my english.
Is it possible to use U++ as a shared library ?
I found a way to build shared dll with option "All shared" in build options(ex : Mingw Optimal) and the result is several dll : core.dll draw.dll plugin_bmp.dll, plugin_png.dll plugin_z.dll richtext.dll
but how to use them for my project ?
I seems that the u++ framework is included in exe file as static library.
Thanks for your help
|
|
|
Re: U++ as shared dll [message #44734 is a reply to message #44732] |
Wed, 10 June 2015 12:09   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
kaka wrote on Tue, 09 June 2015 16:52Hello,
Sorry for my english.
Is it possible to use U++ as a shared library ?
Simple answer: NO
More complex answer: It would be theoretically possible, after fixing some issues. So far nobody done that yet, because it sort of deletes about half of U++ features. C++ and .dlls are, in principle, quite incompatible - you have to be very careful about versioning .dlls correctly. Many changes in the code make .dll incompatible. At that point, you would rather have to ship .dlls with application - and what is the point in having .exe split into .dlls then?
To add to the list of issues, windows .dll implementation makes some optimizations impossible, so some code can run significantly faster when linked statically.
|
|
|
|
Goto Forum:
Current Time: Sun Apr 27 07:43:22 CEST 2025
Total time taken to generate the page: 0.00884 seconds
|