Project

General

Profile

Actions

Bug #884

closed

Compilation on Solaris with SunPro Studio 12.6 in C++11 mode fails because of std::ios::nocreate

Added by Marco Eichelberg over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Jan Schlamelcher
Category:
Configuration
Target version:
Start date:
2019-04-30
Due date:
% Done:

100%

Estimated time:
Module:
ofstd
Operating System:
Solaris
Compiler:
SunPro Studio 12.6 in C++11 mode

Description

When compiling DCMTK on Solaris with SunPro Studio 12.6 in C++11, compilation fails with the following error message:

"ofstd/libsrc/ofcmdln.cc", line 1100: Error: nocreate is not a member of std::ios.
std::ios::nocreate is a proprietary extension that should indeed not be present in C++11 mode. However, we have a CMake test that checks whether ios::nocreate exists. Apparently this test is run with different compiler settings and determines that ios::nocreate is available.

Actions

Also available in: Atom PDF