$ cc /o sample1 sample1.c 이라고 compile 하니
다음과 같은 메세지가 나옵니다.
libpq/fe.h 는 include 를 했는 데.
혹, 다른 compiler나, library option이 있는지요?
감사합니다.
/tmp/cca089731.o: In function `exit_nicely':
/tmp/cca089731.o(.text+0x8): undefined reference to `PQfinish'
/tmp/cca089731.o: In function `main':
/tmp/cca089731.o(.text+0x62): undefined reference to `PQsetdbLogin'
/tmp/cca089731.o(.text+0x73): undefined reference to `PQstatus'
/tmp/cca089731.o(.text+0x9c): undefined reference to `PQerrorMessage'
/tmp/cca089731.o(.text+0xce): undefined reference to `PQexec'
/tmp/cca089731.o(.text+0xe5): undefined reference to `PQresultStatus'
/tmp/cca089731.o(.text+0x10f): undefined reference to `PQclear'
..
|