Ticket #159 (closed defect: fixed)
request_parser.c error on Windows: cannot convert from 'const char *' to 'char *'
Reported by: | jmckenna | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | zoo-kernel | Version: | |
Keywords: | Cc: | jmckenna@… |
Description
Using Visual Studio 2012 compiler, the following errors are thrown:
request_parser.c(1743) : error C2440: 'initializing' : cannot convert from 'const char *' to 'char *' Conversion loses qualifiers request_parser.c(1792) : error C2440: 'initializing' : cannot convert from 'const char *' to 'char *' Conversion loses qualifiers request_parser.c(1795) : error C2440: 'initializing' : cannot convert from 'const char *' to 'char *' Conversion loses qualifiers request_parser.c(1807) : error C2440: '=' : cannot convert from 'const char *' to 'char *' Conversion loses qualifiers NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2' Stop.
more about this error: https://msdn.microsoft.com/en-us/library/sy5tsf8z.aspx
I am attaching a possible fix for this (please review if it is valid).
Attachments (1)
Change History
Note: See
TracTickets for help on using
tickets.