利用GCC进行编译时报以下错误
/tmp/ccoMpdzH.o(.text+0x4a): undefined reference to `PQconnectdb'
/tmp/ccoMpdzH.o(.text+0x5d): undefined reference to `PQstatus'
例如:gcc testlibpq.c-I /usr/local/postgre/include/ -L /usr/local/postgre/lib/ -lpq -o testlibpq.out