problema para conectar con postgres (por favor)

From: "Pedro Mateo" <pedromateoa(at)gmail(dot)com>
To: "ayuda postgres" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: problema para conectar con postgres (por favor)
Date: 2006-12-03 00:04:10
Message-ID: c245e4540612021604w4e0ea2a5nbeba8e7adb0e49aa@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

estoy tratando de desarrollar una aplicacion
con c++ utilizando postgres

estoy trantando de compilar esta programa
*************************************************************
#include <iostream>
#include <pqxx/pqxx>
using namespace PGSTD;
using namespace pqxx;
int main( int argc, char * argv[] )
{
connection conn;
return 0;
}
**************************************************************

este es el comando que estoy utilizando para compilar
gcc -o test test.cpp

y este es el error que me da
***********************************************************

/tmp/cc66fq8n.o: En funciñon `main':test.cpp:(.text+0x2a): referencia a
`pqxx::connection::connection()' sin definir
:test.cpp:(.text+0x3d): referencia a `pqxx::connection::~connection()' sin
definir
/tmp/cc66fq8n.o: En funciñon `__tcf_0':test.cpp:(.text+0x56): referencia a
`std::ios_base::Init::~Init()' sin definir
/tmp/cc66fq8n.o: En funciñon `__static_initialization_and_destruction_0(int,
int)':test.cpp:(.text+0x7f): referencia a `std::ios_base::Init::Init()' sin
definir
/tmp/cc66fq8n.o:(.eh_frame+0x11): referencia a `__gxx_personality_v0' sin
definir
collect2: ld devolvió el estado de salida 1
**************************************************************

alguien podria ayudarme!!

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2006-12-03 01:29:50 Re: problema para conectar con postgres (por favor)
Previous Message Pedro Mateo 2006-12-02 23:53:17 Re: Problema C++, libqxx y postgresql