Boost logo

Boost Users :

From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2019-08-20 13:44:20


Hi,

I'm getting the following error when using BOOST_DLL_ALIAS to export a function to create a plugin using visual studio 2019 and boost 1.71.

This isn't new, just the first time I've noticed it.

E0077 this declaration has no storage class or type specifier

I've cross-checked this with the example (specifically tutorial 2) to ensure that it wasn't just me.
For reference, the offending line in the my_plugin_aggregator.cpp file is:
BOOST_DLL_ALIAS(
    my_namespace::my_plugin_aggregator::create, // <-- this function is exported with...
    create_plugin // <-- ...this alias name
)

Other than suppressing this specific error, is there any other work around given I'm compiling with treat warnings as errors enabled?

Any help appreciated as always.

Thanks,
Sean.



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