From: | "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> |
---|---|
To: | "Magnus Hagander" <magnus(at)hagander(dot)net> |
Cc: | <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Warning is adjusted of pgbench. |
Date: | 2007-08-07 08:10:24 |
Message-ID: | 014201c7d8ca$681e2d30$c601a8c0@HP22720319231 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Hi. Magnus
$ make
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing -I../../src/interfaces/libpq -I. -I../../src/include -I./src/include/port/win32
-DEXEC_BACKEND "-I../../src/include/port/win32" -c -o pgbench.o pgbench.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing
pgbench.o -L../../src/port -lpgport -L../../src/interfaces/libpq -lpq -L../../src/port -Wl,--allow-multiple-definition
-lpgport -lm -lws2_32 -lshfolder -o pgbench
I put in in order to avoid -D of the Makefile.
Regards,
Hiroshi Saito
> On Tue, Aug 07, 2007 at 04:58:19PM +0900, Hiroshi Saito wrote:
>> Hi Magnus.
>>
>> pgbench.c: In function `main':
>> pgbench.c:1257: warning: implicit declaration of function `getopt'
>>
>> adjustment of some reference is required for this.
>> and this is a FRONTEND program.
>> patch is smooth at VC8 and MinGW (gcc).
>
> Hi!
>
> Why do you need to #undef EXEC_BACKEND, and is there a specific reason for
> removing the include of win32.h?
>
> //Magnus
From | Date | Subject | |
---|---|---|---|
Next Message | Zdenek Kotala | 2007-08-07 11:36:30 | Re: pgcrypto (v02) |
Previous Message | Magnus Hagander | 2007-08-07 08:06:24 | Re: Warning is adjusted of pgbench. |