apolukhin / Boost.DLL

Library for comfortable work with DLL and DSO
https://boost.org/libs/dll
110 stars 69 forks source link

The macro BOOST_DLL_ALIAS does not appear to work for tutorial 1. #54

Open Levi-Armstrong opened 3 years ago

Levi-Armstrong commented 3 years ago

The code below suggest that you can replace it with BOOST_DLL_ALIAS(my_namespace::plugin, plugin), but if you do it will not build. Is there something missing?

// Exporting `my_namespace::plugin` variable with alias name `plugin`
// (Has the same effect as `BOOST_DLL_ALIAS(my_namespace::plugin, plugin)`)
extern "C" BOOST_SYMBOL_EXPORT my_plugin_sum plugin;
my_plugin_sum plugin;