Skip to content

Mod for C++14 + #16

@jaggzh

Description

@jaggzh

..../djcodecd.cc:26:
/usr/include/dcmtk/config/osconfig.h:1145:2: error: invalid preprocessing directive #errorDCMTK
1145 | #error\
| ^~~~~~
1146 | DCMTK was configured to use C++14 features, but your compiler does not or was not configured to provide them. cmake_minimum_required(VERSION 3.12)

I actually had to go to v17 to get it to build.

In CMakeLists.txt:
Change:
set (CMAKE_CXX_STANDARD 11)
To:
set (CMAKE_CXX_STANDARD 17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions