#11481: Samples fail to compile with Sun's compiler
-------------------------+--------------------------------------------------
Reporter: lanurmi | Owner:
Type: build error | Status: new
Priority: normal | Milestone: 2.8.11
Component: samples | Version: 2.8-svn
Keywords: solaris | Blockedby:
Patch: 0 | Blocking:
-------------------------+--------------------------------------------------
Samples fail to compile because _T is not defined when using Sun
Microsystems's C++ compiler.
{{{
"../../../samples/minimal/minimal.cpp", line 128: Error: The function "_T"
must have a prototype.
"../../../samples/minimal/minimal.cpp", line 157: Error: The function "_T"
must have a prototype.
...
}}}
I propose replacing "_T(" -> "wxT(" in the samples. (And I object to
#defining _T in some wx header to fix this.)
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11481>
#11481: Samples fail to compile with Sun's compiler
-------------------------+--------------------------------------------------
Reporter: lanurmi | Owner:
Type: build error | Status: confirmed
Priority: normal | Milestone: 2.8.11
Component: samples | Version: 2.8-svn
Keywords: solaris | Blockedby:
Patch: 0 | Blocking:
-------------------------+--------------------------------------------------
Changes (by vadz):
* status: new => confirmed
Comment:
Personally I'd prefer to do exactly this, of course, i.e. define `_T` as
`wxT` when building the samples because this is the least intrusive fix
and none of our samples use STL headers which define `_T` under Solaris.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11481#comment:1>
#11481: Samples fail to compile with Sun's compiler
--------------------------+-------------------------------------------------
Reporter: lanurmi | Owner:
Type: build error | Status: closed
Priority: normal | Milestone: 2.8.11
Component: samples | Version: 2.8-svn
Resolution: wontfix | Keywords: solaris
Blockedby: | Patch: 0
Blocking: |
--------------------------+-------------------------------------------------
Changes (by vadz):
* status: confirmed => closed
* resolution: => wontfix
Comment:
I don't think it's worth keeping this one opened, I don't think anybody is
going to do this for 2.8.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11481#comment:2>