Skip to content
This repository

MSVC project fails to compile - size_t redefinition #60

Closed
LB-- opened this Issue · 5 comments

3 participants

Nicholas "LB" Braden Phi James McLaughlin
Nicholas "LB" Braden
lacewing\src\webserver\http\../../../deps/http-parser/http_parser.h(41) : error C2371: 'size_t' : redefinition; different basic types
        predefined C++ types (compiler internal)(19) : see declaration of 'size_t'

I wasn't sure whether to post the issue here or in multipart parser. This happens on all four build configurations.

Phi

This looks like the same error/warning as my benign warning from issue #58.

Nicholas "LB" Braden

I didn't have the problem in earlier versions of Lacewing (such as the one I used when I told you it compiled fine). I'll try and find which commit caused the problem using git bisect when I have some time.

James McLaughlin
Owner

Seems to only affect VC 2008 or earlier?

James McLaughlin udp referenced this issue in joyent/http-parser
Closed

Make compatible with VS 2005 32 bits compiler #128

James McLaughlin udp referenced this issue in joyent/http-parser
Closed

Replace MSVC size_t typedef with stddef.h #141

James McLaughlin
Owner

Can you confirm this is fixed by 88b5951?

Nicholas "LB" Braden LB-- closed this
Nicholas "LB" Braden

Yes, everything is working now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.