[gtkmm] Troubles compiling gtkmm on WIN32



Hi,

We are trying to build latest gtkmm (1.3.22) on WIN32 using mingw with
gcc3.2.

There is a problem with some token/enum names.

1. glibmm/thread.h

enum ThreadPriority
{
  THREAD_PRIORITY_LOW,
  THREAD_PRIORITY_NORMAL,
  THREAD_PRIORITY_HIGH,
  THREAD_PRIORITY_URGENT
};

THREAD_PRIORITY_NORMAL is defined somewhere in WINDOWS headers, so,
compiler gave up here on token substitution.

-----------------------------------------------------
2. gdkmm/

   - types.h
enum Status
{
  OK = 0,
  ERROR = -1,
  ERROR_PARAM = -2,
  ERROR_FILE = -3,
  ERROR_MEM = -4
};

ERROR token is defined in WINDOWS headers.

   - event.h
enum EventType
{
  NOTHING = -1,
  DELETE,
  DESTROY, ...

DELETE token is defined in WINDOWS headers.

--------------------------------------------------------
3. gtkmm/

   - stock.h
extern GTKMM_API const Gtk::BuiltinStockID DELETE;
   - stock.cc
const Gtk::BuiltinStockID DELETE = { GTK_STOCK_DELETE };

DELETE again.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]