Opened 6 years ago
Closed 6 years ago
#17033 closed build error (fixed)
Cannot build wxMSW library with UNICODE=0
Reported by: | suzumizaki | Owned by: | vadz |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wxMSW | Version: | dev-latest |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Patch: | no |
Description
wxMSW cannot be built when you set UNICODE=0 with current 'master' on GitHub(https://github.com/wxWidgets/wxWidgets/commit/903b2eb61a7fe2fa04f7e8a1baf41113b71b9000).
MSVC++ 2005 Express with SDK for Windows Server 2003 SP1 reports(Sorry as Japanese version, but you may know what the errors are):
..\..\src\msw\taskbarbutton.cpp(342) : error C2664: 'HRESULT (LPCTSTR,LPTSTR *)' : 2 番目の引数を 'LPWSTR *' から 'LPTSTR *' に変換できません。(新しい機能 ; ヘルプを参照) 指示された型は関連がありません。変換には reinterpret_cast、C スタイル キャストまたは関数スタイルのキャストが必要です。 ..\..\src\msw\taskbarbutton.cpp(342) : error C2664: 'HRESULT (LPCTSTR,LPTSTR *)' : 1 番目の引数を 'LPWSTR *' から 'LPCTSTR' に変換できません。(新しい機能 ; ヘルプを参照) 指示された型は関連がありません。変換には reinterpret_cast、C スタイル キャストまたは関数スタイルのキャストが必要です。 ..\..\src\msw\taskbarbutton.cpp(942) : error C2665: 'wxStrlcpy' : 2 オーバーロードのどれも、すべての引数の型を変換できませんでした Z:\wxmsw\include\wx/wxcrt.h(252): 'size_t wxStrlcpy(char *,const char *,size_t)' の可能性があります。 Z:\wxmsw\include\wx/wxcrt.h(266): または 'size_t wxStrlcpy(wchar_t *,const wchar_t *,size_t)' 引数リスト '(WCHAR [260], const char *, size_t)' を一致させようとしているとき NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : Stop.
I think these errors will be reported any compilers on MS Windows, but I don't check with another ones.
Change History (3)
comment:1 Changed 6 years ago by suzumizaki
comment:2 Changed 6 years ago by vadz
- Owner set to vadz
- Status changed from new to accepted
comment:3 Changed 6 years ago by Vadim Zeitlin <vadim@…>
- Resolution set to fixed
- Status changed from accepted to closed
Note: See
TracTickets for help on using
tickets.
Also TDM-GCC reports: