#13715: Compile error SVN trunk

7 views
Skip to first unread message

wxTrac

unread,
Dec 1, 2011, 10:21:31 AM12/1/11
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13715>

#13715: Compile error SVN trunk
----------------------------+-----------------------------------------------
Reporter: ghostvoodooman | Owner:
Type: build error | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: | Blockedby:
Patch: 0 | Blocking:
----------------------------+-----------------------------------------------
ICL 12.1 under VS 2010, x64 build

{{{
graphics.cpp
..\..\src\msw\graphics.cpp(902): error : no instance of constructor
"Gdiplus::Font::Font" matches the argument list
argument types are: (const wxString, Gdiplus::REAL, int,
Gdiplus::Unit)
m_font = new Font(name, size, style, fontUnit);
^

compilation aborted for ..\..\src\msw\graphics.cpp (code 2)
}}}


--
Ticket URL: <http://trac.wxwidgets.org/ticket/13715>

wxTrac

unread,
Dec 1, 2011, 11:47:31 AM12/1/11
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13715#comment:1>

#13715: Compile error SVN trunk
----------------------------+-----------------------------------------------
Reporter: ghostvoodooman | Owner:
Type: build error | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: | Blockedby:
Patch: 0 | Blocking:
----------------------------+-----------------------------------------------

Comment(by vadz):

Can you please verify that adding `.t_str()` after `name` fixes it?

(You're using an STL build, right?)


--
Ticket URL: <http://trac.wxwidgets.org/ticket/13715#comment:1>

wxTrac

unread,
Dec 1, 2011, 12:00:13 PM12/1/11
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13715#comment:2>

#13715: Compile error SVN trunk
----------------------------+-----------------------------------------------
Reporter: ghostvoodooman | Owner:
Type: build error | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: | Blockedby:
Patch: 0 | Blocking:
----------------------------+-----------------------------------------------

Comment(by ghostvoodooman):

Yes, STL build. I do confirm that it fixed the error.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/13715#comment:2>

wxTrac

unread,
Dec 1, 2011, 12:56:04 PM12/1/11
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13715#comment:3>

#13715: Compile error SVN trunk
----------------------------+-----------------------------------------------
Reporter: ghostvoodooman | Owner:
Type: build error | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9-svn
Keywords: | Blockedby:
Patch: 0 | Blocking:
----------------------------+-----------------------------------------------

Comment(by ghostvoodooman):

It seems there is some problem with wxString in case of Unicode + STL
build.

{{{
webview_ie.cpp
..\..\src\msw\webview_ie.cpp(701): error : no suitable conversion function
from "const wxString" to "const OLECHAR={WCHAR={__wchar_t}} *" exists
window->execScript(SysAllocString(javascript),
SysAllocString(language), &level);
^

..\..\src\msw\webview_ie.cpp(701): error : no suitable conversion function
from "wxString" to "const OLECHAR={WCHAR={__wchar_t}} *" exists
window->execScript(SysAllocString(javascript),
SysAllocString(language), &level);
^

..\..\src\msw\webview_ie.cpp(722): error : no suitable conversion function
from "wxString" to "LPCWSTR={const WCHAR={__wchar_t} *}" exists
HRESULT hr = session->RegisterNameSpace(cf,
CLSID_FileProtocol, handler->GetName(), 0, NULL, 0);
^
}}}


--
Ticket URL: <http://trac.wxwidgets.org/ticket/13715#comment:3>

wxTrac

unread,
Dec 2, 2011, 7:04:49 AM12/2/11
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13715#comment:4>

#13715: Compile error SVN trunk

-----------------------------+----------------------------------------------
Reporter: ghostvoodooman | Owner:
Type: build error | Status: closed

Priority: normal | Milestone:
Component: wxMSW | Version: 2.9-svn

Resolution: fixed | Keywords:
Blockedby: | Patch: 0
Blocking: |
-----------------------------+----------------------------------------------
Changes (by VZ):

* status: new => closed
* resolution: => fixed


Comment:

(In [69911]) Compilation fixes for wxMSW in wxUSE_STL=1 build.

Add explicit conversions from wxString to wchar_t* as they don't happen
implicitly when wxUSE_STL=1.

Closes #13715.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/13715#comment:4>

Reply all
Reply to author
Forward
0 new messages