Opened 5 years ago

Closed 5 years ago

#14949 closed build error (fixed)

patch to built wxWidget 2.9.4 with x86_64_mingw cross compiler

Reported by: schloegl Owned by:
Priority: normal Milestone:
Component: wxMSW Version: 2.9.4
Keywords: Cc:
Blocked By: Blocking:
Patch: yes


When trying to built wxWidgets 2.9.4 with the mingw cross-compiler for 64bit windows target, a compiler error occurs. The following patch solves that problem.

--- ./src/msw/textctrl.cpp	2013-01-02 21:47:03.000000000 +0100
+++ ./src/msw/textctrl.cpp	2013-01-02 21:46:53.000000000 +0100
@@ -992,7 +992,7 @@
     EDITSTREAM eds;
-    eds.dwCookie = (DWORD)&data;
+    eds.dwCookie = (DWORD_PTR)&data;
     eds.pfnCallback = wxRichEditStreamOut;

Attachments (1)

wxwidgets-1-fixes.patch download (330 bytes) - added by schloegl 5 years ago.
patch to fix built with x86_64_mingw cross-compiler

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by schloegl

patch to fix built with x86_64_mingw cross-compiler

comment:1 Changed 5 years ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [73395]) 64 bit compilation fix for wxTextCtrl in wxMSW.

Use DWORD_PTR instead of DWORD for a pointer.

This was already done for another occurrence of the same cast in r58564 but
somehow this one fell through the cracks.

Close #14949.

Note: See TracTickets for help on using tickets.