Re: MSVC build scripts status - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: MSVC build scripts status
Date
Msg-id 20070926111521.GD21744@svr2.hagander.net
Whole thread Raw
In response to Re: MSVC build scripts status  (Michael Meskes <meskes@postgresql.org>)
Responses Re: MSVC build scripts status
List pgsql-hackers
On Wed, Sep 26, 2007 at 01:07:04PM +0200, Michael Meskes wrote:
> On Tue, Sep 25, 2007 at 03:25:08PM +0200, Magnus Hagander wrote:
> > > > /* exec sql type customer is struct { #line 12 "array_of_struct.pgc" struct varchar_name_12  { int len; char
arr[50 ]; }  name    ; #line 13 "array_of_struct.pgc" int  phone    ; }   */ #line 14 "array_of_struct.pgc"
 
> > > > ...
> > > > Seems like the entire definition of the struct is commented out?
> > ...
> > Any idea as to *why* it's doing that?
> 
> This might be too simple but are you sure ecpg is called with option
> "-c" when compiling array_of_struct.pgc? It is listed that way in the
> Makefile, however lacking this option should generate exactly the file
> you sent.

Well, bingo. With that, ti passes that check. Oops. Will commit fix for
that.

But it's not done yet, I now get a different problem :-)
   define.c   define.pgc(13): error C2059: syntax error : '['


diff of the .c file is:
17c17
< #line 1 "./../regression.h"
---
> #line 1 "regression.h"
34c34
< typedef  int  [ 6 ]  intarray ;
---
> /* exec sql type intarray is int [ 6 ]   */


//Magnus


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: MSVC build scripts status
Next
From: "Kuriakose, Cinu Cheriyamoozhiyil"
Date:
Subject: Regression test message