mlotfy wrote:I completely failed to build the POCO library (Data component) with MinGW on windows (XP).
I used the last version of MinGW (4.6.2). Is there any trusted way to do that since I need the (Data component) very much in order to (ODBC) connect to a database?
I build all libraries successfully on Linux, but in window - using MinGw - repeated failure.
First, as SalvorHardin said, please update to rev 1834 for you MingW build. Without this POCO can not be built on you MingW 4.6.2.
And for ODBC build, I just updated the Makefile for branch 1.4.4 (rev 1854), would you please check it ?
If you can not use branch 1.4.4, just change your ODBC Makefile like this patch file:
- Code: Select all
@@ -15,7 +15,9 @@
SYSLIBS += -L/usr/local/lib/odbc -L/usr/lib/odbc -L/usr/lib -L/usr/local/lib
ifeq ($(POCO_CONFIG),MinGW)
-# Lack of unixODBC or iODBC is not an error for MinGW platform since it uses Windows odbc32.lib
+# -DODBCVER=0x0300: SQLHandle declaration issue
+# -DNOMINMAX : MIN/MAX macros defined in windows conflict with libstdc++
+CXXFLAGS += -DODBCVER=0x0300 -DNOMINMAX
else
ifeq ($(POCO_CONFIG),CYGWIN)
# -DODBCVER=0x0300: SQLHandle declaration issue
Jiang (a.k.a pasorobo)