Also need to change generated code of esqlcc a bit to get things to link with the IIsqlca function.
fi
fi
SQL_INCLUDE=-I$INGRES_INCDIR
- SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
+ SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1"
SQL_BINDIR=$INGRES_BINDIR
SQL_LIB=$INGRES_LIBDIR/libingres.a
AC_DEFINE(HAVE_INGRES, 1, [Set if have Ingres Database])
fi
fi
SQL_INCLUDE=-I$INGRES_INCDIR
- SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
+ SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1"
SQL_BINDIR=$INGRES_BINDIR
SQL_LIB=$INGRES_LIBDIR/libingres.a
#include <eqpname.h>
#include <eqdefcc.h>
#include <eqsqlca.h>
-IISQLCA *IIsqlca();
-#define sqlca (*(IIsqlca()))
#include <eqsqlda.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "myingres.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+IISQLCA *IIsqlca();
+#ifdef __cplusplus
+}
+#endif
+#define sqlca (*(IIsqlca()))
+
/*
* ---Implementations---
*/