Project

General

Profile

Actions

Bug #4769

closed
SR SR

Compile error in src/http/RequestParser.C

Bug #4769: Compile error in src/http/RequestParser.C

Added by Saif Rehman over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
02/26/2016
Due date:
% Done:

0%

Estimated time:

Description

I'm compiling with SHARED_LIBS on and using wthttp connected. I get the compile error in src/http/RequestParser.C:

\src\http\RequestParser.C(68): error C2614: 'http::server::RequestParser': illegal member initialization: 'inflateInitialized_' is not a base or member

KD Updated by Koen Deforche over 10 years ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Benoit Daccache

SR Updated by Saif Rehman over 10 years ago Actions #2

The preprocessor condition was missing in the constructor of RequestParser

Should be

RequestParser::RequestParser(Server *)
#ifdef WTHTTP_WITH_ZLIB
  : inflateInitialized_(false)
#endif
{
  reset();
}

KD Updated by Koen Deforche over 10 years ago Actions #3

  • Status changed from InProgress to Feedback
  • Assignee changed from Benoit Daccache to Saif Rehman

Did you intend to build wt without zlib support or is there something wrong with the defaults chosen by CMake?

SR Updated by Saif Rehman over 10 years ago Actions #4

I built Wt without zlib and the preprocessor condition was missing

SR Updated by Saif Rehman over 10 years ago Actions #5

There is still a problem in RequestParser.C, the problem is that the constructor's initializer : is not enclosed in the preprocessor condition

WD Updated by Wim Dumon over 10 years ago Actions #6

  • Status changed from Feedback to Resolved

Fixed

KD Updated by Koen Deforche about 10 years ago Actions #7

  • Status changed from Resolved to Closed
  • Target version set to 3.3.6
Actions

Also available in: PDF Atom