Subject: Re: [Boost-build] link switches
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-11-13 00:31:18
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,
> 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.
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