开发者

Boost.log V1 Compilation Error

开发者 https://www.devze.com 2023-02-25 08:23 出处:网络
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

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

精彩评论

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