안녕하세요 이렇게 질문을 또 올리는 군요...
다름이 아니라.....postgreSQL메뉴얼에 16.libpq라는 항목이 있는데...
이 항목이 클라이언트에서 서버에 있는 정보를 끌어내는데 필요한 인터페이스 프로그램에 필요한 라이브러리라는 예기를 들었는데 그게 사실인지요...
예제를 돌려보았는데 testlibpq2.o: In function `exit_nicely':
testlibpq2.o(.text+0x8): undefined reference to `PQfinish'
testlibpq2.o: In function `main':
testlibpq2.o(.text+0x71): undefined reference to `PQsetdbLogin'
testlibpq2.o(.text+0x82): undefined reference to `PQstatus'
testlibpq2.o(.text+0xac): undefined reference to `PQerrorMessage'
testlibpq2.o(.text+0xdf): undefined reference to `PQexec'
testlibpq2.o(.text+0xf0): undefined reference to `PQresultStatus'
testlibpq2.o(.text+0x116): undefined reference to `PQclear'
testlibpq2.o(.text+0x12e): undefined reference to `PQclear'
testlibpq2.o(.text+0x14a): undefined reference to `PQexec'
testlibpq2.o(.text+0x15b): undefined reference to `PQnotifies'
testlibpq2.o(.text+0x1a5): undefined reference to `PQclear'
testlibpq2.o(.text+0x1b5): undefined reference to `PQfinish'
collect2: ld returned 1 exit status
와 같은 에러를 내면서 돌지 않았습니다. 정말 막막하네요.. 뭐하는 프로그램인지도 모르겠는데 에러까지....
혹시 아시는 분 있으시면....해결책 부탁 드려요.
|