> -----Original Message-----
> From: Mark Phippard [mailto:markphip_at_gmail.com]
> Sent: Monday, July 05, 2010 5:13 PM
> To: Subversion Development
> Subject: Problem building Serf on Windows
>
> I am setting up a new Windows build machine. I am building our 1.6.12
> release and deps zip. I get a problem when it goes to build Serf.
>
>
> Performing Makefile project actions
> context.c
> context.c(585) : error C2036: 'void *' : unknown size
> context.c(1410) : warning C4090: '=' : different 'const' qualifiers
> NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio
> 9.0\VC\bin\cl.exe"' : return code '0x2'
> Stop.
> Project : error PRJ0019: A tool returned an error code from
> "Performing Makefile project actions"
>
> Any ideas?
Cast it to a char* or a BYTE*.
http://msdn.microsoft.com/en-us/library/1kay26wa%28VS.80%29.aspx
some compilers assume a 'void' type is a char/byte type and treat it
accordingly. MS compiler doesn't do that, it (possibly correctly) treats
a void as a 'non type' without a size. The workaround is to explicitly
tell it what size to use.
Received on 2010-07-05 18:24:56 CEST