On Fri, 13 Aug 1999, you wrote:
> Sewaktu saya mencoba compile testlibpq.c untuk coba akses ke postgres
> database engine, terdapat pesan error :
> "undefined reference to PQfinish"
> "undefined reference to PQsetdb", undefined to ...dst...dst
> Please kalao ada yg tahu,.... mengapa itu terjadi & pemecahannya bagaimana ?
>
> Thanks
> ----------Berikut cuplikan testlibpq.c-----------------------
> /*
> * testlibpq.c
> * Test the C version of Libpq, the Postgres frontend library.
> *
> *
> */
> #include <stdio.h>
> #include <libpq-fe.h>
Kalo libpq-fe.h-nya ada di default dir buat header files sih bener. Tapi
perasaan posgtress naro header file-nya nggak di /usr/include atau
/usr/local/include deh. Nah, kalo file-nya nggak berada di default dir,
mestinya include-nya pake "" -> #include "libpq-fe.h"
Trus pas kompail kasih tau kompiler nyari file itu di mana. man gcc
Atau kalo misalnya header files postgress ada di bawah dir default, misal
di /usr/include/pgsql, maka include-nya bisa:
#include <pgsql/libpq-fe.h>
Semoga membantu,
hf
--------------------------------------------------------------------------------
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3
Pengelola dapat dihubungi lewat [EMAIL PROTECTED]
Hosted by http://www.Indoglobal.com