On Wed, Sep 28, 2005 at 10:59:04AM +0100, [EMAIL PROTECTED] wrote:
> I've just modified the extension with .c instead of .cpp and run:
> vicbsd# gcc -I /usr/local/include/ prova.c -o prova -Lpq
> /var/tmp//cc86RZZl.o(.text+0x25): In function `main':
> : undefined
> reference to `PQconnectdb'
>
>
aggio originale
Da: kleptog@svana.org
Data: 28-set-2005 11.44
A: "[EMAIL PROTECTED]"<[EMAIL PROTECTED]>
Cc:
Ogg: Re: [GENERAL] postgresql and
C++/C
On Wed, Sep 28, 2005 at 10:11:45AM +0100, [EMAIL PROTECTED]
wrote:
> Context:FREEBSD 5.4, postgresql 8.0.3
>
> I
On Wed, Sep 28, 2005 at 10:11:45AM +0100, [EMAIL PROTECTED] wrote:
> Context:FREEBSD 5.4, postgresql 8.0.3
>
> I'm not a C newbye and I'm
> having a go at compiling my first, simple C(++) program:
1. If it's a C program, you should name the file .c otherwise gcc is
likely to consider it a c++ pr
On Wed, Sep 28, 2005 at 10:11:45AM +0100, [EMAIL PROTECTED] wrote:
>
> vicbsd# gcc -I
Don't use gcc to compile C++. Use g++.
Peter
---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/
Context:FREEBSD 5.4, postgresql 8.0.3
I'm not a C newbye and I'm
having a go at compiling my first, simple C(++) program:
#include
int main()
{
PGconn *psql;
psql = PQconnectdb("hostaddr =
'127.0.0.1' port = '' dbname = 'curve' user = 'vi
return 0;
}
But
when
I compile it the following mess