Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Gist does not build with VC++ anymore


  • From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
  • To: <pgsql-hackers(at)postgresql(dot)org>
  • Subject: Gist does not build with VC++ anymore
  • Date: Sat, 24 Jun 2006 18:06:46 +0200
  • Message-id: <6BCB9D8A16AC4241919521715F4D8BCEA0FA88(at)algol(dot)sollentuna(dot)se>

I've updated my VC++ build env with latest CVS, and it no longer builds
because of changes to GIST:

src\backend\access\gist\gistutil.c(237) : error C2057: expected constant
expression
src\backend\access\gist\gistutil.c(237) : error C2466: cannot allocate
an array of constant size 0
src\backend\access\gist\gistutil.c(237) : error C2133: 'storage' :
unknown size


The problem appears to come from:
#define GEVHDRSZ	(offsetof(GistEntryVector, vector[0]))

Which can't be used in this context. 

What would be the proper fix for that?

//Magnus



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group