Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#15753 closed defect (invalid)

wxGenericColourDialog does not work of wxGTK even when the header can be included

Reported by: Hanmac Owned by:
Priority: low Milestone:
Component: wxGTK Version: dev-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: no


currently on wxGTK the wxGenericColourDialog header can be included, but the classes cant use it because it seems that the wxGenericColourDialog source files are not added.

(i currently get undefined symbol: _ZTI21wxGenericColourDialog)

so eigther add the source files so the wxGenericColourDialog can also be used in wxGTK,
or add template protection that the header cant be included on wxGTK.

Change History (2)

comment:1 Changed 4 years ago by vadz

  • Priority changed from high to low
  • Resolution set to invalid
  • Status changed from new to closed

You're really not supposed to include the headers in include/wx/generic (nor in any other port-specific directory) directly, why do you do it?

It would be better to give compilation error for this, of course, but I'm pretty sure it's not the only header which is going to result in problems. So just don't do it.

comment:2 Changed 4 years ago by VZ

(In [75395]) Remove wx/generic/colrdlgg.h from common GUI headers.

This header is not used in all ports, notably not in wxMSW nor wxGTK.

See #15753.

Note: See TracTickets for help on using tickets.