X-Original-To: pgsql-cygwin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7B53E9DC98E for ; Wed, 25 Jan 2006 05:39:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36266-01 for ; Wed, 25 Jan 2006 05:39:22 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 69B189DC94B for ; Wed, 25 Jan 2006 05:39:19 -0400 (AST) Received: from tide.yandex.ru (tide.yandex.ru [213.180.200.37]) by svr4.postgresql.org (Postfix) with ESMTP id C08AC5AF040 for ; Wed, 25 Jan 2006 09:39:21 +0000 (GMT) Received: from YAMAIL (tide.yandex.ru) by mail.yandex.ru id ; Wed, 25 Jan 2006 12:39:03 +0300 Date: Wed, 25 Jan 2006 12:39:03 +0300 (MSK) From: "Volosatov Alexander" Message-Id: <43D74737.000003.12307@tide.yandex.ru> MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] To: pgsql-cygwin@postgresql.org Subject: compile example Reply-To: rope-walker@yandex.ru X-Source-Ip: 217.168.77.126 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[UNPARSEABLE_RELAY=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200601/8 X-Sequence-Number: 4320 Hi! Try to compile libpqxx example: #include #include using namespace std; using namespace pqxx; int main() { try { connection C; cout << "Connected to " << C.dbname() << endl; work W(C); result R = W.exec("SELECT name FROM employee"); cout << "Found " << R.size() << "employees:" << endl; for (result::const_iterator r = R.begin(); r != R.end(); ++r) { cout << r[0].c_str() << endl; } cout << "Doubling all employees' salaries..." << endl; W.exec("UPDATE employee SET salary=salary*2"); cout << "Making changes definite: "; W.commit(); cout << "ok." << endl; } catch (const exception &e) { cerr << e.what() << endl; return 1; } return 0; } Use Dev-Cpp + mingw32. Have errors: ... 345 C:\Dev-Cpp\include\pqxx\largeobject.hxx `in' was not declared in this scope 345 C:\Dev-Cpp\include\pqxx\largeobject.hxx `out' was not declared in this scope ... 380 C:\Dev-Cpp\include\pqxx\largeobject.hxx there are no arguments to `eback' that depend on a template parameter, so a declaration of `eback' must be available ... they repeates. Please help.