Обсуждение: make testlibpq.c error

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

make testlibpq.c error

От
"sharesun"
Дата:
env:
win2003 adv server
CYGWIN_NT-5.2 1.3.22(0.78/3/2)
ipc-daemon 1.14
postgres 7.3.4

when I make testlibpq.c, get this error

$ make
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfa
ces/libpq -I../../../src/include -I/usr/include  -L/lib   testlibpq.c   -o testl
ibpq
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory
testlibpq.c: In function `exit_nicely':
testlibpq.c:14: warning: implicit declaration of function `exit'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0xd):testlibpq.c: u
ndefined reference to `_PQfinish'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x1c0):testlibpq.c:
 undefined reference to `_PQsetdbLogin'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x1cb):testlibpq.c:
 undefined reference to `_PQstatus'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x1e5):testlibpq.c:
 undefined reference to `_PQexec'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x1ef):testlibpq.c:
 undefined reference to `_PQresultStatus'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x222):testlibpq.c:
 undefined reference to `_PQclear'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x235):testlibpq.c:
 undefined reference to `_PQclear'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x248):testlibpq.c:
 undefined reference to `_PQexec'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x252):testlibpq.c:
 undefined reference to `_PQresultStatus'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x285):testlibpq.c:
 undefined reference to `_PQclear'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x298):testlibpq.c:
 undefined reference to `_PQclear'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x2ab):testlibpq.c:
 undefined reference to `_PQexec'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x2b5):testlibpq.c:
 undefined reference to `_PQresultStatus'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x2ea):testlibpq.c:
 undefined reference to `_PQclear'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x2ff):testlibpq.c:
 undefined reference to `_PQnfields'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x324):testlibpq.c:
 undefined reference to `_PQntuples'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x35d):testlibpq.c:
 undefined reference to `_PQgetvalue'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x37c):testlibpq.c:
 undefined reference to `_PQclear'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x38f):testlibpq.c:
 undefined reference to `_PQexec'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x397):testlibpq.c:
 undefined reference to `_PQclear'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x3aa):testlibpq.c:
 undefined reference to `_PQexec'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x3b2):testlibpq.c:
 undefined reference to `_PQclear'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x3bd):testlibpq.c:
 undefined reference to `_PQfinish'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x3d9):testlibpq.c:
 undefined reference to `_PQfname'
/cygdrive/c/DOCUME~1/sharesun/LOCALS~1/Temp/ccYGnDY2.o(.text+0x41e):testlibpq.c:
 undefined reference to `_PQerrorMessage'
collect2: ld returned 1 exit status
make: *** [testlibpq] Error 1

              sharesun2@sina.com.cn
                 2003-09-01

Re: make testlibpq.c error

От
Peter Eisentraut
Дата:
sharesun writes:

> $ make
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfa
> ces/libpq -I../../../src/include -I/usr/include  -L/lib   testlibpq.c   -o testl
> ibpq
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning:   as it has already been specified as a non-system directory

I doubt that this is really version 7.3.4, because it does not add
-I/usr/include to the compiler command line.  What do you find in
src/template/win?

--
Peter Eisentraut   peter_e@gmx.net


Re: make testlibpq.c error

От
"sharesun"
Дата:
Peter Eisentraut,

I use pgsql7.3.4 ,but it is install by cygwin,not by make.
so,I changed Makefile

>sharesun writes:
>
>> $ make
>> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfa
>> ces/libpq -I../../../src/include -I/usr/include  -L/lib   testlibpq.c   -o testl
>> ibpq
>> cc1: warning: changing search order for system directory "/usr/include"
>> cc1: warning:   as it has already been specified as a non-system directory
>
>I doubt that this is really version 7.3.4, because it does not add
>-I/usr/include to the compiler command line.  What do you find in
>src/template/win?
>
>-- 
>Peter Eisentraut   peter_e@gmx.net
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 8: explain analyze is your friend
>
>

= = = = = = = = = = = = = = = = = = = =
            

                    致
礼!
                 
               sharesun
               sharesun2@sina.com.cn
                    2003-09-02