]> git.saurik.com Git - wxWidgets.git/commitdiff
ODBC compile (and link) fixes
authorRobert Roebling <robert@roebling.de>
Sat, 18 Jul 1998 10:15:35 +0000 (10:15 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 18 Jul 1998 10:15:35 +0000 (10:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/odbc.h
install/gtk/configure
install/gtk/configure.in
src/Makefile.in
src/gtk/setup/maketmpl.in
src/gtk/setup/substit.in
src/gtk1/setup/maketmpl.in
src/gtk1/setup/substit.in
src/iodbc/execute.c
src/iodbc/hstmt.c
src/iodbc/prepare.c

index ed73055dedcc1f2d6e03c575b4556b8a26de862f..58d027a0839f890551ef3f416bca88c1b4208360 100644 (file)
 #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
index 88634368bcad1fdc9f13bfa22941257206e4b8cb..f243d9f1968f2727c100339873eed68d13fdb70a 100755 (executable)
@@ -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
index 77032b17eb22ce0128373a321e3d27537446db32..353601aeb5a7dd9573ee35cce8152360373cf468 100644 (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 ----------------------------------------------------------------
index 6be1d72eecf069ce1a657728c8b0c9816d381c2a..1a3358f04ab60600fa161c0d114e5f82bccd476b 100644 (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 \
index 8c5244d63f304a8342973b04d20461ac9d52d1f7..540aede6b947dc1612bf92151aa084a08efc0cc4 100644 (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= \
index 127ccdd01980bc6c7c208843b06186913bed5bde..d56b6c1da974cefbc1dcce26e994967db52c751d 100644 (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
index 8c5244d63f304a8342973b04d20461ac9d52d1f7..540aede6b947dc1612bf92151aa084a08efc0cc4 100644 (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= \
index 127ccdd01980bc6c7c208843b06186913bed5bde..d56b6c1da974cefbc1dcce26e994967db52c751d 100644 (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
index 3cc17128f2b10e535c45b149290cafdf4548324d..eb2633a6edbcf3066d235c0a683c54afd6d91968 100644 (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;
index a336f038a3c48d385eb3d6589f60d5ccdf599a25..6850bda25bbd8d3b4437093620b522b16740accc 100644 (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 )
 {
index b4a13716f0cd4719085efb08ffc9957a17d3dcd7..9e71ea0c4ae0b36fe146336e799703150a6e5bee 100644 (file)
@@ -27,7 +27,7 @@
 
 #include       <../iodbc/itrace.h>
 
-RETCODE SQL_API        SQLprepare (
+RETCODE SQL_API        SQLPrepare (
                        HSTMT           hstmt,
                        UCHAR FAR*      szSqlStr,
                        SDWORD          cbSqlStr )