Opened 2 years ago

Closed 2 years ago

#15332 closed build error (fixed)

Don't try to use wxEnhMetaFile in wxGTK/Win32

Reported by: kosenko Owned by:
Priority: normal Milestone:
Component: wxGTK Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: yes


This is fix for test_gui build error .\graphics\measuring.cpp(127) : error C2065: 'wxEnhMetaFileDC' : undeclared identifier
Bug probably appeared in r72801.
BTW there is weird r66514 revision that has no sense because wxEnhMetaFile is implemented only in wxMSW port.

Attachments (1)

wxgtk_win32_enh_metafile.diff download (351 bytes) - added by kosenko 2 years ago.

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by kosenko

comment:1 Changed 2 years ago by vadz

I think the reason for r66514 was the same as the reason for your patch: wxUSE_ENH_METAFILE gets defined in the default setup.h, both for Windows and OS X. FWIW I agree that not defining it in the first place, or doing the same thing for wxOSX as you did for wxGTK, would be better...

Anyhow, I'll apply this soon, thanks.

comment:2 Changed 2 years ago by VZ

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

(In [74517]) Disable wxUSE_ENH_METAFILE for wxGTK builds.

This can happen to be defined in wxGTK builds under Windows.

Closes #15332.

Note: See TracTickets for help on using tickets.