Project

General

Profile

Actions

Bug #3738

open

Wt fails to compile WIOService with Cygwin

Added by Anonymous about 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Start date:
01/23/2015
Due date:
% Done:

0%

Estimated time:

Description

When compiling Wt 3.3.3 with Cygwin 1.7.33-2(0.280/5/3) on Win7, it fails to compile WIOService.

Environment:

Cygwin's:

- gcc 4.9.2

- Boost 1.55 (provided by cygwin)

- cmake 2.8.9

  • make 4.0

I used cmake -DBOOST_PREFIX=/usr -DSSL_PREFIX=/usr/lib -DWT_CPP_11_MODE=-std=gnu++0x /cygdrive/c/projects/wt-3.3.3/

I get the following error:

WIOService cannot be compiled, because fd_set is not defined.

I removed ADD_DEFINITIONS(-D__USE_W32_SOCKETS) from CMakeLists.txt and replaced

#ifdef __CYGWIN__
#include <winsock2.h> // for gethostname()
#endif

with

#ifdef __USE_W32_SOCKETS
#include <winsock2.h> // for gethostname()
#endif

in src/http/Configuration.C

These changes fixed the compilation errors, however I am not sure, if these changes are correct.

See also http://redmine.webtoolkit.eu/boards/2/topics/10235

Actions #1

Updated by Koen Deforche about 9 years ago

  • Assignee set to Wim Dumon
Actions

Also available in: Atom PDF