Обсуждение: actual cvs: compile error

Поиск
Список
Период
Сортировка

actual cvs: compile error

От
Karel Zak
Дата:
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../src/interfaces/libpq -I../../../src/include   -c -o
common.o common.c -MMD
common.c:184: conflicting types for `cancelConn'
common.h:30: previous declaration of `cancelConn'
make[3]: *** [common.o] Error 1
make[3]: Leaving directory `/var/home/PG_DEVEL/pgsql/src/bin/psql'
make[2]: *** [all] Error 2
The "cancelConn" has defined to the file common.c as static and in
the common.h as extern.
   Karel

-- Karel Zak  <zakkr@zf.jcu.cz>http://home.zf.jcu.cz/~zakkr/


Re: actual cvs: compile error

От
Bruce Momjian
Дата:
Thanks.  Fixed.

---------------------------------------------------------------------------

Karel Zak wrote:
> 
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
> -I../../../src/interfaces/libpq -I../../../src/include   -c -o
> common.o common.c -MMD
> common.c:184: conflicting types for `cancelConn'
> common.h:30: previous declaration of `cancelConn'
> make[3]: *** [common.o] Error 1
> make[3]: Leaving directory `/var/home/PG_DEVEL/pgsql/src/bin/psql'
> make[2]: *** [all] Error 2
> 
>  The "cancelConn" has defined to the file common.c as static and in
> the common.h as extern.
> 
>     Karel
> 
> -- 
>  Karel Zak  <zakkr@zf.jcu.cz>
>  http://home.zf.jcu.cz/~zakkr/
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073