#11481: Samples fail to compile with Sun's compiler

0 views
Skip to first unread message

wxTrac

unread,
Nov 24, 2009, 1:06:46 PM11/24/09
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11481>

#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>

wxTrac

unread,
Nov 25, 2009, 9:11:27 AM11/25/09
to wx-...@googlegroups.com
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: 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>

wxTrac

unread,
Mar 28, 2010, 6:25:11 PM3/28/10
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11481#comment:2>

#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>

Reply all
Reply to author
Forward
0 new messages