Opened 14 years ago

Closed 14 years ago

#2175 closed Bugs (fixed)

error_code.cpp fails to compile on QNX

Reported by: glyn.matthews@… Owned by: Beman Dawes
Milestone: Boost 1.37.0 Component: system
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

This file doesn't compile on QNX. The compiler output is listed as follows:

libs/system/src/error_code.cpp: In member function `virtual std::string

<unnamed>::generic_error_category::message(int) const':

libs/system/src/error_code.cpp:105: error: `strerror_r' undeclared (first use

this function)

libs/system/src/error_code.cpp:105: error: (Each undeclared identifier is

reported only once for each function it appears in.)

libs/system/src/error_code.cpp: In member function `virtual

boost::system::error_condition <unnamed>::system_error_category::default_error_condition(int) const':

libs/system/src/error_code.cpp:160: error: duplicate case value libs/system/src/error_code.cpp:157: error: previously used here

I've added a patch which fixes these errors on my system. This is using the latest version in trunk.

Attachments (1)

error_code.cpp.patch (1.2 KB ) - added by glyn.matthews@… 14 years ago.
Patch for libs/system/src/error_code.cpp

Download all attachments as: .zip

Change History (3)

by glyn.matthews@…, 14 years ago

Attachment: error_code.cpp.patch added

Patch for libs/system/src/error_code.cpp

comment:1 by christian.leutloff@…, 14 years ago

This problem applies to the released boost version 1.35.0, too. Required patch is the same.

comment:2 by Beman Dawes, 14 years ago

Resolution: fixed
Status: newclosed

Applied.

Thanks,

--Beman

Note: See TracTickets for help on using tickets.