C++ and v7.3.2
От | Dev |
---|---|
Тема | C++ and v7.3.2 |
Дата | |
Msg-id | 5.2.0.9.0.20030424131358.02498978@pop3.umpa-us.com обсуждение исходный текст |
Ответы |
Re: C++ and v7.3.2
|
Список | pgsql-general |
Hello all, I have just started working with C++ and am trying to get it to compile an app for PGSQL and well it has errors: I am using the test files that came with 7.2.1 (they did not work with 7.2.1 either) any thoughts? c++ testlibpq0.cc -o test.app In file included from pgsql/libpq++.h:27, from testlibpq0.cc:18: pgsql/libpq++/pgconnection.h:86: ISO C++ forbids declaration of `string' with no type pgsql/libpq++/pgconnection.h:86: parse error before `(' In file included from pgsql/libpq++.h:29, from testlibpq0.cc:18: pgsql/libpq++/pglobject.h:42: syntax error before `;' pgsql/libpq++/pglobject.h:61: syntax error before `(' In file included from pgsql/libpq++.h:31, from testlibpq0.cc:18: pgsql/libpq++/pgcursordb.h:53: `string' was not declared in this scope pgsql/libpq++/pgcursordb.h:53: parse error before `,' pgsql/libpq++/pgcursordb.h:62: `string' was not declared in this scope pgsql/libpq++/pgcursordb.h:62: parse error before `)' pgsql/libpq++/pgcursordb.h:65: `string' was not declared in this scope pgsql/libpq++/pgcursordb.h:65: parse error before `,' pgsql/libpq++/pgcursordb.h:68: syntax error before `;' pgsql/libpq++/pgcursordb.h: In method `const char *PgCursor::Cursor () const': pgsql/libpq++/pgcursordb.h:59: `pgCursor' undeclared (first use this function) pgsql/libpq++/pgcursordb.h:59: (Each undeclared identifier is reported only once for each function it appears in.) pgsql/libpq++/pgcursordb.h: In method `void PgCursor::Cursor (...)': pgsql/libpq++/pgcursordb.h:62: `cursor' undeclared (first use this function) testlibpq0.cc: In function `int main ()': testlibpq0.cc:34: `string' undeclared (first use this function) testlibpq0.cc:34: parse error before `;' testlibpq0.cc:40: `buf' undeclared (first use this function) testlibpq0.cc:40: `getline' undeclared (first use this function)
В списке pgsql-general по дате отправления: