Skip site navigation (1) Skip section navigation (2)

Re: kdevelop -> libpq-fe.h ( part II )

From: Jesus Aneiros <aneiros(at)jagua(dot)cfg(dot)sld(dot)cu>
To: Eduardo <ekotuja(at)brasilnet(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: kdevelop -> libpq-fe.h ( part II )
Date: 2000-08-16 01:14:42
Message-ID: Pine.LNX.4.10.10008152112270.14195-100000@jagua.cfg.sld.cu (view raw or flat)
Thread:
Lists: pgsql-novice
What about the libpq and libecpg? Use -lpq -lecpg

--
Jesus Aneiros Sosa
mailto:aneiros(at)jagua(dot)cfg(dot)sld(dot)cu
http://jagua.cfg.sld.cu/~aneiros

On Tue, 15 Aug 2000, Eduardo wrote:

> 
>  The libpg-fe.h is in   /usr/include/pgsql/libpq-fe.h
>  so i  did:
> 
>  #include "../include/pgsql/libpq-fe.h"
> 
>  and the message changed:
> 
> 
> c++  -O0 -g3 -Wall  -o usa_postgresql  main.o  
> main.o: In function `exit_nicely(pg_conn *)':
> /root/usa_postgresql/usa_postgresql/main.cpp:13: undefined reference to `PQfinish'
> main.o: In function `main':
> /root/usa_postgresql/usa_postgresql/main.cpp:47: undefined reference to `PQsetdbLogin'
> /root/usa_postgresql/usa_postgresql/main.cpp:52: undefined reference to `PQstatus'
> /root/usa_postgresql/usa_postgresql/main.cpp:55: undefined reference to `PQerrorMessage'
> /root/usa_postgresql/usa_postgresql/main.cpp:63: undefined reference to `PQexec'
> /root/usa_postgresql/usa_postgresql/main.cpp:64: undefined reference to `PQresultStatus'
> /root/usa_postgresql/usa_postgresql/main.cpp:67: undefined reference to `PQclear'
> /root/usa_postgresql/usa_postgresql/main.cpp:75: undefined reference to `PQclear'
> /root/usa_postgresql/usa_postgresql/main.cpp:81: undefined reference to `PQexec'
> /root/usa_postgresql/usa_postgresql/main.cpp:82: undefined reference to `PQresultStatus'
> /root/usa_postgresql/usa_postgresql/main.cpp:85: undefined reference to `PQclear'
> /root/usa_postgresql/usa_postgresql/main.cpp:88: undefined reference to `PQclear'
> /root/usa_postgresql/usa_postgresql/main.cpp:89: undefined reference to `PQexec'
> /root/usa_postgresql/usa_postgresql/main.cpp:90: undefined reference to `PQresultStatus'
> /root/usa_postgresql/usa_postgresql/main.cpp:93: undefined reference to `PQclear'
> /root/usa_postgresql/usa_postgresql/main.cpp:98: undefined reference to `PQnfields'
> /root/usa_postgresql/usa_postgresql/main.cpp:100: undefined reference to `PQfname'
> /root/usa_postgresql/usa_postgresql/main.cpp:104: undefined reference to `PQntuples'
> /root/usa_postgresql/usa_postgresql/main.cpp:107: undefined reference to `PQgetvalue'
> /root/usa_postgresql/usa_postgresql/main.cpp:110: undefined reference to `PQclear'
> /root/usa_postgresql/usa_postgresql/main.cpp:113: undefined reference to `PQexec'
> /root/usa_postgresql/usa_postgresql/main.cpp:114: undefined reference to `PQclear'
> /root/usa_postgresql/usa_postgresql/main.cpp:117: undefined reference to `PQexec'
> /root/usa_postgresql/usa_postgresql/main.cpp:118: undefined reference to `PQclear'
> /root/usa_postgresql/usa_postgresql/main.cpp:121: undefined reference to `PQfinish'
> collect2: ld returned 1 exit status
> gmake: *** [usa_postgresql] Error 1
> *** failed ***
> 
> I am still in problem.
> 
>  Eduardo K.
> 



In response to

pgsql-novice by date

Next:From: Hugh LawsonDate: 2000-08-16 01:21:13
Subject: Re: kdevelop -> libpq-fe.h ( part II )
Previous:From: EduardoDate: 2000-08-15 18:20:20
Subject: kdevelop -> libpq-fe.h ( part II )

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group