boostorg / dll

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

Compilation error without include <string> in 1.73 release #42

Closed neyron85 closed 4 years ago

neyron85 commented 4 years ago

When i adding '#define BOOST_DLL_USE_STD_FS' in simple project, then i get compilation error.

//#include <string> // << Uncomment this line and compilation is ok

#ifndef BOOST_DLL_USE_STD_FS
#define BOOST_DLL_USE_STD_FS
#endif

#include <boost/dll.hpp>

int main()
{
    return 0;
}

image

I found that adding include before definition BOOST_DLL_USE_STD_FS solves this problem.

Next i looked on diffs between DLL in Boost 1.72 and 1.73 releases and seen that include of was in x_info_interface.hpp and that header does not exists anymore.

Best regards, Dmitry Egorov.

apolukhin commented 4 years ago

Many thanks for the report!