开发者

Boost.log V1 Compilation Error

Experiencing difficulty in compiling boost.log v1 in my code, though I know that the issue is due to boost.filesystem v3 lack of support. I know I need to #define BOOST_FILESYSTEM_VERSION 2 but where should I define it?

The compilation error:

error: 'external_string_type' is not a member开发者_C百科 of 'boost::filesystem3::wpath'

#define was added @ path.hpp


You can add this preprocessor #define two ways:

a) on the compiler command line, usually something like

-DBOOST_FILESYSTEM_VERSION=2 

b) before including any of the boost filesystem header files in your sources:

#define BOOST_FILESYSTEM_VERSION 2
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜