Compiling problems

From: Matthias Teege <matthias(at)mteege(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Compiling problems
Date: 1999-11-08 08:15:38
Message-ID: 199911080815.JAA13638@moon.mteege.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Moin,

i have problems compiling the sample (first from doku) c
programm with postgreSQL und FreeBSD.

cc -Wall -ansi -pedantic -I /usr/local/pgsql/include
/usr/local/pgsql/lib/libpq.a -o testpg testpg.c

gives me:

testpg.c:18: warning: return-type defaults to `int'
testpg.c: In function `main':
testpg.c:93: warning: implicit declaration of function `PQgetvalues'
testpg.c:93: warning: format argument is not a pointer (arg 2)
testpg.c:113: warning: control reaches end of non-void function
/var/tmp/ccT136201.o: Undefined symbol `_PQfinish' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQsetdb' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQstatus' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQerrorMessage' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQtrace' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQexec' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQresultStatus' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQclear' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQclear' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQexec' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQresultStatus' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQclear' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQclear' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQexec' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQresultStatus' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQclear' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQnfields' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQfname' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQntuples' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQgetvalues' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQclear' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQexec' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQclear' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQexec' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQclear' referenced from text segment
/var/tmp/ccT136201.o: Undefined symbol `_PQfinish' referenced from text segment
moon: {5} nm /usr/local/pgsql/lib/libpq.a | grep '_PQfinish'
00000b84 T _PQfinish

Any hints?
Matthias

Browse pgsql-general by date

  From Date Subject
Next Message Fabrice Scemama 1999-11-08 10:05:39 Installing Postgres on Linux Alpha
Previous Message Stuart Woolford 1999-11-07 23:50:41 more] indexed regex select optimisations?