[CMake] How to build and reference dlopen-able libraries?

J Decker d3ck0r at gmail.com
Sat Sep 6 04:08:51 EDT 2014


And without defining variables to get the functions stored into, how do you
propose to actually use the functions loaded?

Standard headers will provide prototypes, but those will be useless.


On Sat, Sep 6, 2014 at 12:58 AM, Hendrik Sattler <post at hendrik-sattler.de>
wrote:

>
>
> On 6. September 2014 05:49:44 MESZ, J Decker <d3ck0r at gmail.com> wrote:
> >you'll need separate includes for dlopen thing, because you'll need the
> >functions declares are pointers...
>
> Not really
>
> >void (*f)( void );
> >or typedefed as functions
> >typedef void (*some_function_type)( void );
> >some_function_type f;
>
> Usually, for dlopen usage, these function pointers are defined by the
> using application, not by the library. You can dlopen any (C) library and
> none of them provides those function pointers or typedefs like you purpose.
>
> HS
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140906/87cf400c/attachment.html>


More information about the CMake mailing list