ODBC compile (and link) fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-07-18 10:15:35 +00:00
parent 1a6944fd74
commit 0d73e5a104
11 changed files with 25 additions and 8 deletions

View File

@@ -25,9 +25,11 @@
#endif
#ifdef __WXGTK__
extern "C" {
#include <../iodbc/postgres/isqlext.h>
#include <../iodbc/postgres/odbc_funcs.h>
#include <../iodbc/postgres/odbc_types.h>
}
#else
#include <sqlext.h>
#endif

10
install/gtk/configure vendored
View File

@@ -6163,13 +6163,18 @@ fi
DL_LIBRARY=-ldl
OPENGL_INCLUDE=
OPENGL_LIBRARY=
OPENGL_LINK=
if test "$USE_OPENGL" = 1; then
echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6
echo "configure:6173: checking for OpenGL includes" >&5
echo "configure:6178: checking for OpenGL includes" >&5
ac_find_includes=
for ac_dir in $SEARCH_INCLUDE;
@@ -6184,7 +6189,7 @@ for ac_dir in $SEARCH_INCLUDE;
OPENGL_INCLUDE="-I$ac_find_includes"
echo "$ac_t""found $ac_find_includes" 1>&6
echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
echo "configure:6188: checking for OpenGL library" >&5
echo "configure:6193: checking for OpenGL library" >&5
ac_find_libraries=
for ac_dir in $SEARCH_LIB;
@@ -6652,6 +6657,7 @@ s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
s%@GUI_TK_LINK@%$GUI_TK_LINK%g
s%@TOOLKIT@%$TOOLKIT%g
s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
s%@DL_LIBRARY@%$DL_LIBRARY%g
s%@OPENGL_INCLUDE@%$OPENGL_INCLUDE%g
s%@OPENGL_LIBRARY@%$OPENGL_LIBRARY%g
s%@OPENGL_LINK@%$OPENGL_LINK%g

View File

@@ -1201,6 +1201,14 @@ AC_SUBST(GUI_TK_LINK)
AC_SUBST(TOOLKIT)
AC_SUBST(TOOLKIT_DEF)
dnl ----------------------------------------------------------------
dnl select dynamic loader (used by iODBC to load drivers)
dnl ----------------------------------------------------------------
DL_LIBRARY=-ldl
AC_SUBST(DL_LIBRARY)
dnl ----------------------------------------------------------------
dnl search for opengl
dnl ----------------------------------------------------------------

View File

@@ -178,7 +178,6 @@ LIB_C_SRC=\
iodbc/hstmt.c \
iodbc/connect.c \
iodbc/prepare.c \
iodbc/execute.c \
iodbc/result.c \
iodbc/execute.c \
iodbc/fetch.c \

View File

@@ -107,7 +107,7 @@ WX_LIBS = -L$(GLOBAL_LIB_DIR) -lwx_gtk
OPENGL_LIBS = $(OPENGL_LIBRARY) $(OPENGL_LINK)
GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK)
GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK) -ldl
LINK = $(CXX) -o $@
LINK_LIBS= \

View File

@@ -34,6 +34,7 @@ s|*X_PRE_LIBS*|@X_PRE_LIBS@|g
s|*GUI_TK_INCLUDE*|@GUI_TK_INCLUDE@|g
s|*GUI_TK_LIBRARY*|@GUI_TK_LIBRARY@|g
s|*GUI_TK_LINK*|@GUI_TK_LINK@|g
s|*DL_LIBRARY*|@DL_LIBRARY@|g
s|*OPENGL_INCLUDE*|@OPENGL_INCLUDE@|g
s|*OPENGL_LIBRARY*|@OPENGL_LIBRARY@|g
s|*OPENGL_LINK*|@OPENGL_LINK@|g

View File

@@ -107,7 +107,7 @@ WX_LIBS = -L$(GLOBAL_LIB_DIR) -lwx_gtk
OPENGL_LIBS = $(OPENGL_LIBRARY) $(OPENGL_LINK)
GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK)
GUI_TK_LIBS = $(GUI_TK_LIBRARY) $(GUI_TK_LINK) -ldl
LINK = $(CXX) -o $@
LINK_LIBS= \

View File

@@ -34,6 +34,7 @@ s|*X_PRE_LIBS*|@X_PRE_LIBS@|g
s|*GUI_TK_INCLUDE*|@GUI_TK_INCLUDE@|g
s|*GUI_TK_LIBRARY*|@GUI_TK_LIBRARY@|g
s|*GUI_TK_LINK*|@GUI_TK_LINK@|g
s|*DL_LIBRARY*|@DL_LIBRARY@|g
s|*OPENGL_INCLUDE*|@OPENGL_INCLUDE@|g
s|*OPENGL_LIBRARY*|@OPENGL_LIBRARY@|g
s|*OPENGL_LINK*|@OPENGL_LINK@|g

View File

@@ -52,7 +52,7 @@ static void do_cursoropen(STMT_t FAR* pstmt)
}
}
RETCODE SQL_API SQLexecute ( HSTMT hstmt )
RETCODE SQL_API SQLExecute ( HSTMT hstmt )
{
STMT_t FAR* pstmt = (STMT_t FAR*)hstmt;
HPROC hproc = SQL_NULL_HPROC;

View File

@@ -184,7 +184,7 @@ RETCODE _iodbcdm_dropstmt( HSTMT hstmt )
return SQL_SUCCESS;
}
RETCODE SQL_API SQLfreestmt (
RETCODE SQL_API SQLFreeStmt (
HSTMT hstmt,
UWORD fOption )
{

View File

@@ -27,7 +27,7 @@
#include <../iodbc/itrace.h>
RETCODE SQL_API SQLprepare (
RETCODE SQL_API SQLPrepare (
HSTMT hstmt,
UCHAR FAR* szSqlStr,
SDWORD cbSqlStr )