freonix
freonix

Reputation: 1625

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 of 'boost::filesystem3::wpath'

#define was added @ path.hpp

Upvotes: 0

Views: 438

Answers (1)

hkaiser
hkaiser

Reputation: 11521

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

Upvotes: 3

Related Questions