Closed
Bug 1203006
Opened 9 years ago
Closed 9 years ago
VS2015 build fails in suite due to wchar_t/char16_t mismatch
Categories
(SeaMonkey :: Build Config, defect)
Tracking
(firefox43 affected)
RESOLVED
DUPLICATE
of bug 1201629
Tracking | Status | |
---|---|---|
firefox43 | --- | affected |
People
(Reporter: ewong, Unassigned)
Details
Getting this after applying bug 1198936's patch. 43:27.60 nsWindowsShellService.cpp 43:27.60 e:/mozstuff/mozprgs/trunk/suite/shell/src/nsWindowsShellService.cpp(476): error C2679: binary '=': no operator found which takes a right-hand operand of type 'wchar_t [4096]' (or there is no acceptable conversion) 43:27.60 e:\mozstuff\mozprgs\trunk\objdir\dist\include\nsStringAPI.h(983): note: could be 'nsString_external::self_type &nsString_external::operator =(nsAString::char_type)' 43:27.60 e:\mozstuff\mozprgs\trunk\objdir\dist\include\nsStringAPI.h(978): note: or 'nsString_external::self_type &nsString_external::operator =(const nsAString::char_type *)' 43:27.60 e:\mozstuff\mozprgs\trunk\objdir\dist\include\nsStringAPI.h(973): note: or 'nsString_external::self_type &nsString_external::operator =(const nsString_external::abstract_string_type &)' 43:27.60 e:\mozstuff\mozprgs\trunk\objdir\dist\include\nsStringAPI.h(968): note: or 'nsString_external::self_type &nsString_external::operator =(const nsString_external::self_type &)' 43:27.60 e:/mozstuff/mozprgs/trunk/suite/shell/src/nsWindowsShellService.cpp(476): note: while trying to match the argument list '(nsString_external, wchar_t [4096])' 43:27.60 e:/mozstuff/mozprgs/trunk/suite/shell/src/nsWindowsShellService.cpp(483): error C2679: binary '=': no operator found which takes a right-hand operand of type 'wchar_t [4096]' (or there is no acceptable conversion) 43:27.60 e:\mozstuff\mozprgs\trunk\objdir\dist\include\nsStringAPI.h(983): note: could be 'nsString_external::self_type &nsString_external::operator =(nsAString::char_type)' 43:27.60 e:\mozstuff\mozprgs\trunk\objdir\dist\include\nsStringAPI.h(978): note: or 'nsString_external::self_type &nsString_external::operator =(const nsAString::char_type *)' 43:27.60 e:\mozstuff\mozprgs\trunk\objdir\dist\include\nsStringAPI.h(973): note: or 'nsString_external::self_type &nsString_external::operator =(const nsString_external::abstract_string_type &)' 43:27.60 e:\mozstuff\mozprgs\trunk\objdir\dist\include\nsStringAPI.h(968): note: or 'nsString_external::self_type &nsString_external::operator =(const nsString_external::self_type &)' 43:27.60 e:/mozstuff/mozprgs/trunk/suite/shell/src/nsWindowsShellService.cpp(483): note: while trying to match the argument list '(nsString_external, wchar_t [4096])' 43:27.62 43:27.62 In the directory /e/mozstuff/mozprgs/trunk/objdir/suite/shell/src 43:27.62 The following command failed to execute properly: 43:27.62 e:/mozstuff/mozprgs/trunk/objdir/_virtualenv/Scripts/python.exe -m mozbuild.action.cl cl -FonsWindowsShellService.obj -c -I../../../dist/stl_wrappers -DAB_CD=en-US -DNO_NSPR_10_SUPPORT -Ie:/mozstuff/mozprgs/trunk/suite/shell/src -I. -I../../../dist/include -Ie:/mozstuff/mozprgs/trunk/objdir/dist/include/nspr -Ie:/mozstuff/mozprgs/trunk/objdir/dist/include/nss -MD -FI ../../../dist/include/mozilla-config.h -DMOZILLA_CLIENT -TP -nologo -Wv:18 -Zc:sizedDealloc- -wd4091 -D_HAS_EXCEPTIONS=0 -W3 -Gy -arch:IA32 -FS -wd4251 -wd4244 -wd4267 -wd4345 -wd4351 -wd4482 -wd4800 -wd4819 -we4553 -GR- -DNDEBUG -DTRIMMED -Zi -UDEBUG -DNDEBUG -O1 -Oi -Oy -Fdgenerated.pdb e:/mozstuff/mozprgs/trunk/suite/shell/src/nsWindowsShellService.cpp 43:27.63 e:/mozstuff/mozprgs/trunk/mozilla/config/rules.mk:958: recipe for target 'nsWindowsShellService.obj' failed 43:27.63 mozmake.EXE[4]: *** [nsWindowsShellService.obj] Error 1 43:27.63 e:/mozstuff/mozprgs/trunk/mozilla/config/recurse.mk:71: recipe for target 'suite/shell/src/target' failed 43:27.63 mozmake.EXE[3]: *** [suite/shell/src/target] Error 2 +++ This bug was initially created as a clone of Bug #1198936 +++ When trying to compile Thunderbird using Microsoft Visual Studio 2015 (VC14) with Windows 8.1 SDK on Windows 7 the following errors break compilation: > [...]/mailnews/import/outlook/src/MapiApi.cpp(299): > error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char16_t *' to 'LPWSTR' > [...]/mailnews/import/outlook/src/MapiApi.cpp(307): > error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char16_t *' to 'LPWSTR' > [...]/mailnews/import/outlook/src/MapiApi.cpp(997): > error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char16_t *' to 'LPWSTR' > [...]/mailnews/import/outlook/src/MapiMessage.cpp(603): > error C2664: 'nsresult nsIUnicodeEncoder::Convert(const char16_t *,int32_t *,char *,int32_t *)': cannot convert argument 1 from 'const wchar_t *' to 'const char16_t *' > [...]/mailnews/import/outlook/src/MapiMessage.cpp(650): > error C2665: 'Substring': none of the 8 overloads could convert all the argument types > [...]/mailnews/import/oexpress/WabObject.cpp(525): > error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char16_t *' to 'LPWSTR' > [...]/mailnews/import/oexpress/WabObject.cpp(533): > error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char16_t *' to 'LPWSTR'
Reporter | ||
Updated•9 years ago
|
Summary: VS2015 build fails in mailnews due to wchar_t/char16_t mismatch → VS2015 build fails in suite due to wchar_t/char16_t mismatch
Comment 1•9 years ago
|
||
I already opened 1201629 last week for this: https://bugzilla.mozilla.org/show_bug.cgi?id=1201629
You need to log in
before you can comment on or make changes to this bug.
Description
•