Boost logo

Boost Users :

Subject: Re: [Boost-users] gcc refuses to compile Boost.Extension example
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-09-01 09:57:09


On 01/09/10 10:11, René Tschirley wrote:
> Dear Boost experts,
>
>
> I struggle to get Jeremy Pack's Boost.Extension going. I want to use the platform
> independent way to explicitly load shared libraries. Starting with the tutorial,
> it took me some time to find this out:
>
> boost::extensions::shared_library lib("mylib.dll");
> boost::function<void (int)> fun1(lib.get<void, int>("DoSomething"));
>
> works, but
>
> boost::function<void (void)> fun2(lib.get<void, void>("DoSomething"));

Try with

boost::function<void (void)> fun2(lib.get<void>("DoSomething"));


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