Thread: Postgre Perl on WIN NT

Postgre Perl on WIN NT

From
"Christopher R. Jones"
Date:
I am trying to build the Perl module in WINNT with VC++ 6.0.
Unfortunately, VC++ has reserved the work "keyword" which is defined in
libgg-fe.h:
typedef struct _PQconninfoOption
{
char   *keyword;
char    *envvar;
char       *compiled;
char       *val;
char       *label;
char       *dispchar;
int            dispsize;
} PQconninfoOption;

I must not be the first to bang up against error.  Any hints?

Will it compile with the Borland 5.0 compiler?


Re: [INTERFACES] Postgre Perl on WIN NT

From
"Randall W. Barrett"
Date:
Christopher,

Why don't you try compiling it with the Cygwin32 compiler...

http://www.cygnus.com

Randy

On Thu, 4 Mar 1999, Christopher R. Jones wrote:

> I am trying to build the Perl module in WINNT with VC++ 6.0.
> Unfortunately, VC++ has reserved the work "keyword" which is defined in
> libgg-fe.h:
> typedef struct _PQconninfoOption
> {
> char   *keyword;
> char    *envvar;
> char       *compiled;
> char       *val;
> char       *label;
> char       *dispchar;
> int            dispsize;
> } PQconninfoOption;
>
> I must not be the first to bang up against error.  Any hints?
>
> Will it compile with the Borland 5.0 compiler?
>
>
>


Re: [INTERFACES] Postgre Perl on WIN NT

From
Tom Lane
Date:
"Christopher R. Jones" <cj@interlog.com> writes:
> I am trying to build the Perl module in WINNT with VC++ 6.0.
> Unfortunately, VC++ has reserved the work "keyword" which is defined in
> libgg-fe.h:

(rolls eyes...)  Microsoft have never been too concerned about adherence
to standards, have they?

> typedef struct _PQconninfoOption
> {
> char   *keyword;

Unfortunately PQconninfoOption is part of the exported API of libpq,
so if I rename that field I can expect to break existing application
code :-(.  I'm not eager to do that.  If it were a strictly internal
change then renaming the field would be OK.

You might look at VC's compiler switches to see if it has a mode
where it actually compiles ANSI C++, and not some other language.

            regards, tom lane