Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


C + + and database postgres link!

Will you please define the problem in C + + database linking postgres
I also saw some in this forum the way to solve the problem, but I now emerging issues in those issues.
Below is a simple test procedure :
#include "Libpq++.h"
Int main ()
{
PgDatabase data ( "host= 192.168.0.2 port=5432 dbanme=test user=test password=123456");
Return 0
}
Translation errors occur when :

/tmp/ccPkMM7Z.o (. Gnu.linkonce.t._ZN10PgDatabaseC1EPKc+0x10) : In function `PgDatabase : O : PgDatabase[in-charge] (char const*) 'O :
: : : O undefined reference to `PgConnection PgConnection[not-in-charge] (char const*) '
/tmp/ccPkMM7Z.o (. Gnu.linkonce.t._ZN10PgDatabaseD1Ev+0x16) : O : : In function `PgDatabase ~PgDatabase [in-charge] () 'O :
: : : O undefined reference to `PgConnection ~PgConnection [not-in-charge] () '
/tmp/ccPkMM7Z.o (. Gnu.linkonce.t._ZN10PgDatabaseD0Ev+0x16) : In function `PgDatabase : O : ~PgDatabase [in-charge deleting] () 'O :
: : : O undefined reference to `PgConnection ~PgConnection [not-in-charge] () '
/tmp/ccPkMM7Z.o (. Gnu.linkonce.d._ZTI10PgDatabase+0x8) : O undefined reference to `typeinfo for PgConnection '
Translation Function never appeared libpq++.h definition, we do not know why? Libpq++.h loading time is a problem?
Please know gets advice Thank you!


Canada reservoir yet? -l***

Get!
Is not increased before the bank can not understand why this is necessary, we can set up, on any increase in the future?
Plus what the rules are there?



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com