From: | amul sul <sul_amul(at)yahoo(dot)co(dot)in> |
---|---|
To: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | undefined symbol: PQescapeLiteral |
Date: | 2013-08-16 02:43:02 |
Message-ID: | 1376620982.81314.YahooMailNeo@web193506.mail.sg3.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
While testing performance of PG9.2.4 using DBT5, I am getting error in
<dbt5_output_result>/bh/bh.out file as :
*BrokerageHouseMain: symbol lookup error: BrokerageHouseMain: undefined symbol: PQescapeLiteral*
So i tried with CPP code as follow
-------------------------- test.cpp ------------------------------------------
#include <iostream>
#include <libpq-fe.h>
#include <string.h>
using namespace std;
int main(){
PGconn *db;
char connstring[] = "dbname=postgres";
db = PQconnectdb(connstring);
char url[] = "https://www.google.co.jp/";
cout<< PQescapeLiteral(db, (const char *)url, (size_t) strlen(url))<<"\n";
}
-------------------------------------------------------------------------------------
While compilation using GCC,
gcc test.cpp
throws error :
test.cpp: In function ‘int main()’:
test.cpp:22: error: ‘PQescapeLiteral’ was not declared in this scope
Do i missing something?
Thanks & regards,
Amul Sul
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2013-08-16 04:20:44 | Re: undefined symbol: PQescapeLiteral |
Previous Message | Vlad Arkhipov | 2013-08-16 02:03:19 | Re: System catalog vacuum issues |