compile error

Поиск
Список
Период
Сортировка
От rony khoury
Тема compile error
Дата
Msg-id 35989254.597B3750@apotres.edu.lb
обсуждение исходный текст
Ответы Re: [INTERFACES] compile error  (Herouth Maoz <herouth@oumail.openu.ac.il>)
Список pgsql-interfaces
hello ,

can somebody explain to me why when I compile the following program i do
not know
how to link the libraries to c .

---------------------

#include <stdio.h>
#include "libpq-fe.h"

void exit_nicely(PGconn* conn)
{
 PQfinish(conn);
 exit(1);
}

main()
{
 printf("\nThe End\n") ;
}

-----------------------
I get the following error

        tmp/cca006421.o: In function `exit nicely'
        tmp/cca006421.o(.text+0x8): undefined reference to `PQfinish'


Thanks ,
Rony .



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: David Hartwig
Дата:
Сообщение: Re: [INTERFACES] scrollable cursor via odbc
Следующее
От: Herouth Maoz
Дата:
Сообщение: Re: [INTERFACES] compile error