[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Problem building Serf on Windows

From: Bolstridge, Andrew <andy.bolstridge_at_intergraph.com>
Date: Mon, 5 Jul 2010 17:24:10 +0100

> -----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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.