SRCDIR= ../..
include ../../Makefile.global
-CXXFLAGS= $(CFLAGS)
+# We have to override -Werror, which makes warnings, fatal, because we
+# inevitably get the warning, "abstract declarator used as declaration"
+# because of our inclusion of c.h and we don't know how to stop that.
+
+CXXFLAGS= $(CFLAGS) -Wno-error
INCLUDE_OPT= \
-I.. \
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlibpq0.cc,v 1.1.1.1 1996/07/09 06:22:18 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlibpq0.cc,v 1.2 1996/11/18 01:44:23 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
#include "libpq++.H"
int
-main(int argc, char** argv)
+main()
{
ExecStatusType status;
PGenv env;
if((status = data->exec(buf)) == PGRES_TUPLES_OK)
data->printtuples(stdout, 1, "|", 1, 0);
else
- printf("status = %s\nerrorMessage = %s\n", status,
+ printf("status = %d\nerrorMessage = %s\n", status,
data->errormessage());
else
done = 1;
main()
{
char* dbName;
- int nFields;
- int i,j;
/* begin, by creating the parameter environtment for a backend
connection. When no parameters are given then the system will
main()
{
char* dbName;
- int nFields;
- int i,j;
int i_fnum, d_fnum, p_fnum;
+ int i;
/* begin, by creating the parameter environtment for a backend
connection. When no parameters are given then the system will
#include <stdio.h>
#include "libpq++.H"
-#define DEBUG printf("Got here %d\n", __LINE__);
main()
{
char* dbName;
- int nFields;
- int i,j;
/* begin, by creating the parameter environment for a backend
connection. When no parameters are given then the system will
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.2 1996/11/18 01:44:28 bryanh Exp $
*
*-------------------------------------------------------------------------
*/
{
char *in_filename, *out_filename;
char *database;
- Oid lobjOid;
PGenv env;
PGlobj *object;