On Wed, 23 Feb 2005, Mohsen Pahlevanzadeh wrote:
> pgsql_LIBS=-L/usr/lib
You need to specify to link to an actual library here (probably -lpq at
least). Just giving a library directory isn't going to be good enough.
---(end of broadcast)---
TIP 4
My Makefile is :
mysql_INCS=-I/usr/include/mysql
pgsql_INCS=-I/usr/include
pgsql_LIBS=-L/usr/lib
mysql_LIBS=-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
CXX=g++
sql2sql : sql2sql.o
$(CXX) $(mysql_LIBS) $(pgsql_LIBS) -o sql2sql sql2sql.o ;
rm -rf sql2sql.o ;
sql2sql.o : sql2s
[EMAIL PROTECTED]
On Wed, 23 Feb 2005, Mohsen Pahlevanzadeh wrote:
> If you see my orginal email,I mentioned to link to inc & lib for
> pgsql.Even when i use PQsetdb,I didn't recieve error message for using
> PQsetdb.
The fragment of execution of make you gave had no mention of them in the
comm
If you see my orginal email,I mentioned to link to inc & lib for
pgsql.Even when i use PQsetdb,I didn't recieve error message for using
PQsetdb.
Yours,Mohsen
>
> On Wed, 23 Feb 2005, Mohsen Pahlevanzadeh wrote:
>
>> My program is using both MySQL & PostgreSQL.I don't have problem with
>> Mysql.But
Mohsen Pahlevanzadeh wrote:
> My program is using both MySQL & PostgreSQL.I don't have problem with
> Mysql. But i have problem with pgsql.
I think Richard's point is that you are not linking in any PostgreSQL
libs.
>> Mohsen Pahlevanzadeh wrote:
>>> I recieve following error:
>>> [EMAIL PROTE
On Wed, 23 Feb 2005, Mohsen Pahlevanzadeh wrote:
> My program is using both MySQL & PostgreSQL.I don't have problem with
> Mysql.But i have problem with pgsql.
That could be because you don't appear to be linking to the PostgreSQL
libraries (as Richard was hinting at).
> > Mohsen Pahlevanzadeh
My program is using both MySQL & PostgreSQL.I don't have problem with
Mysql.But i have problem with pgsql.
> Mohsen Pahlevanzadeh wrote:
>> I recieve following error:
>> [EMAIL PROTECTED] sql2sql]# make
>> g++ -c -I/usr/include/mysql -I/usr/include sql2sql.cpp;
> ^^
>>
Mohsen Pahlevanzadeh wrote:
I recieve following error:
[EMAIL PROTECTED] sql2sql]# make
g++ -c -I/usr/include/mysql -I/usr/include sql2sql.cpp;
^^
g++ -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -o
^ ^^^
Those aren't goi
Dears,I have added following constructor to my class:
class CPgsql : public CCore
{
public:
char *pghost,
*pgport,
*pgoptions,
*pgtty;
char *dbName;
PGconn *connection2db;
const char * conninfo;