Opened 8 years ago

Closed 8 years ago

#10018 closed Bugs (duplicate)

boost.log compile SO_UPDATE_CONNECT_CONTEXT: Undeclared identifier

Reported by: Joseph Southwell <joseph@…> Owned by: Andrey Semashev
Milestone: To Be Determined Component: log
Version: Boost Release Branch Severity: Problem
Keywords: Cc:

Description

ASIO now uses SO_UPDATE_CONNECT_CONTEXT on windows.

This is only defined if _WIN32_WINNT >= 0x0501

Boost.Log uses asio and defaults to defining _WIN32_WINNT to 0x0500

in src/windows_version.hpp

The simplest solution is to drop support for Windows 2000

then change that define to 0x0501. (This is what I did in my env to get it to work)

using latest github
git clone --recursive git@github.com:boostorg/boost.git modular-boost
git submodule foreach --recursive git checkout master
git submodule foreach --recursive git pull

Change History (2)

comment:1 by Joseph Southwell <joseph@…>, 8 years ago

sorry, duplicate of 10016. I couldn't find the email so I thought I was misremembering having done it.

comment:2 by Andrey Semashev, 8 years ago

Resolution: duplicate
Status: newclosed

Duplicates #10016.

Note: See TracTickets for help on using tickets.