DatabaseLayer + PostgreSQL compile error Topic is solved

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
normunds
Knows some wx things
Knows some wx things
Posts: 31
Joined: Mon Sep 03, 2007 8:14 am
Contact:

DatabaseLayer + PostgreSQL compile error

Post by normunds »

Hi all,

I'm trying to compile latest version of DatabaseLayer (1.7.5) with PostgreSQL (8.3) support on WinXP with error:
  • \databaselayer\build>mingw32-make -f makefile.gcc postgresql

    < skipped messages >

    g++ -c -o gccmswu\databaselayer_postgresql_lib_PostgresPreparedStatement.o -DHAVE_W32API_H -D_UNICODE -D__WXMSW__ -I"C:\work\wxWidgets-2.8.7"\lib\gcc_lib\mswu
    -I"C:\work\wxWidgets-2.8.7"\include -O2 -W -Wall -I..\include -I"C:\Program Files\PostgreSQL\8.3\include" -I"C:\Program Files\PostgreSQL\8.3\lib"\include -MT
    gccmswu\databaselayer_postgresql_lib_PostgresPreparedStatement.o -MFgccmswu\databaselayer_postgresql_lib_PostgresPreparedStatement.o.d -MD ../src/PostgresPreparedStatement.cpp
    In file included from ../src/PostgresPreparedStatement.cpp:8:
    C:/Program Files/PostgreSQL/8.3/include/server/mb/pg_wchar.h:295: error: `uint32' does not name a type
    C:/Program Files/PostgreSQL/8.3/include/server/mb/pg_wchar.h:296: error: `uint32' does not name a type
    C:/Program Files/PostgreSQL/8.3/include/server/mb/pg_wchar.h:304: error: `uint32' does not name a type
    C:/Program Files/PostgreSQL/8.3/include/server/mb/pg_wchar.h:305: error: `uint32' does not name a type
    C:/Program Files/PostgreSQL/8.3/include/server/mb/pg_wchar.h:313: error: `uint32' does not name a type
    C:/Program Files/PostgreSQL/8.3/include/server/mb/pg_wchar.h:314: error: `uint32' does not name a type
    C:/Program Files/PostgreSQL/8.3/include/server/mb/pg_wchar.h:315: error: `uint32' does not name a type
    C:/Program Files/PostgreSQL/8.3/include/server/mb/pg_wchar.h:323: error: `uint32' does not name a type
    C:/Program Files/PostgreSQL/8.3/include/server/mb/pg_wchar.h:324: error: `uint32' does not name a type
    C:/Program Files/PostgreSQL/8.3/include/server/mb/pg_wchar.h:325: error: `uint32' does not name a type
    mingw32-make: *** [gccmswu\databaselayer_postgresql_lib_PostgresPreparedStatemen
    t.o] Error 1
Any solution?
valodas - free cross-platform language learning software
http://www.valodas.com
normunds
Knows some wx things
Knows some wx things
Posts: 31
Joined: Mon Sep 03, 2007 8:14 am
Contact:

Post by normunds »

There is no such problem with Postgres 8.2 so that is solution for today.
valodas - free cross-platform language learning software
http://www.valodas.com
jb_coder
Super wx Problem Solver
Super wx Problem Solver
Posts: 267
Joined: Mon Oct 18, 2004 10:55 am

Post by jb_coder »

I was able to get the code to compile against 8.3 by adding the following before the pg_wchar.h include line.

Code: Select all

#ifndef uint32
#define uint32 wxUint32
#endif
Post Reply