Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13192: DLL BOOST_DLL_ALIAS does not compile with Intel C++
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-02-16 08:58:59
#13192: DLL BOOST_DLL_ALIAS does not compile with Intel C++
-------------------------------+---------------------
Reporter: oley@⦠| Owner: (none)
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.66.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------
Changes (by Przemyslaw Olejniczak <oley@â¦>):
* cc: oley@⦠(added)
* version: Boost 1.65.0 => Boost 1.66.0
Comment:
This issue still exists in 1.66.0 compiled on Windows with Intel C++18.
This code does not compile:
{{{
#include <memory>
#include <boost/dll/alias.hpp>
#include <boost/dll/shared_library.hpp>
using namespace std;
struct Plugin
{
static shared_ptr<Plugin> create()
{
return make_shared<Plugin>();
}
};
BOOST_DLL_ALIAS(
Plugin::create,
CreatePlugin
)
int main()
{
return 0;
}
}}}
with an error:
{{{
1>BoostDLL.cpp
1>Info: Boost.Config is older than your compiler version - probably
nothing bad will happen - but you may wish to look for an update Boost
version. Define BOOST_CONFIG_SUPPRESS_OUTDATED_MESSAGE to suppress this
message.
1>BoostDLL.cpp(21): error #77: this declaration has no storage class or
type specifier
1> BOOST_DLL_ALIAS(
1> ^
1>
1>BoostDLL.cpp(21): error : identifier "section" is undefined
1> BOOST_DLL_ALIAS(
1> ^
1>
1>BoostDLL.cpp(21): error : expected a ";"
1> BOOST_DLL_ALIAS(
1> ^
1>
1>compilation aborted for BoostDLL.cpp (code 2)
}}}
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13192#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2018-02-16 09:03:51 UTC