Boost logo

Boost-Build :

Subject: Re: [Boost-build] link switches
From: Robert Ramey (ramey_at_[hidden])
Date: 2017-11-13 05:16:27


On 11/12/17 4:31 PM, Steven Watanabe via Boost-build wrote:
> AMDG
>
> On 11/12/2017 05:20 PM, Robert Ramey via Boost-build wrote:
>>
>> But now that you've been sucked into the discussion, what about this:
>>
>> in my test code I have the following statement:
>>
>> void * hDLL; // Handle to DLL
>> hDLL = dlopen("polymorphic_derived2.so", RTLD_NOW | RTLD_GLOBAL);
>> BOOST_CHECK_MESSAGE((0 != hDLL), "Failed to find/load
>> plugin_polymorphic_derived2" );
>> BOOST_CHECK_MESSAGE((0 != hDLL), dlerror() );
>>
>> Which displays the messages
>>
>> test_dll_plugin.cpp(196): Failed to find/load
>> plugin_polymorphic_derived2 in function 'int test_main(int, char**)'
>>
>> test_dll_plugin.cpp(197): polymorphic_derived2.so: cannot open shared
>> object file: No such file or directory in function 'int test_main(int,
>> char**)'
>> <snip>
>> How is my test program supposed
>> to find these? What should I do differently?
>>
>
> Pass the shared library as an 'input-file' and get the
> name from the command line inside the test program.

OK - but how does one get the name of the shared library file from
within b2? In this case it would be : libpolymorphic_derived2.so.1.66.0

>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
>


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk