Skip to content

mac mvn build error: thread_local/thread-local #42

Open
@airlsyn

Description

@airlsyn

Error occurred when compile c++ code, ltp/thirdparty/jsoncpp/src/lib_json/json_reader.cpp

For Linux
‘thread_local’ does not name a type

just try to use a compiler that supports c++11

For Mac
thread-local storage is not supported for the current target

ENV

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0

how to solve it? Any help will be appreicated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions