Re: Error while including PQXX library

From: Malinka Rellikwodahs <aelmalinka(at)gmail(dot)com>
To: aravind chandu <avin_friends(at)yahoo(dot)com>
Cc: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error while including PQXX library
Date: 2009-05-19 19:04:19
Message-ID: aa2a0fc0905191204m5f308d21x74de8581a8df8df6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, May 19, 2009 at 12:37, aravind chandu <avin_friends(at)yahoo(dot)com> wrote:
> Hello,
>
>           I wrote a small program in cpp which uses pqxx API.The file that i
> included are
>
>           #include <pqxx/connection>
>           #include <pqxx/transaction>
>
>          After compiling i got the following error :
>         prog29.cpp:5:21: pqxx/connection: No such file or directory
>         prog29.cpp:5:21: pqxx/transaction: No such file or directory
>
>         I checked the include directory and all these files were there,but i
> don't know why i got these errors.Can you guys please help me to solve this
> problem.

Random guess but check that your include path points to the directory
containing the pqxx director, for example if you're connection and
transaction header files are in some/path/include/pqxx make sure you
add to the compiler some/path/include not some/path/include/pqxx

>
> Thanks,
> Aravind.
>
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2009-05-19 19:07:30 Re: Locking to restrict rowcounts.
Previous Message Glen Parker 2009-05-19 18:52:46 Re: Locking to restrict rowcounts.