Webkit: Conversion from string literal loses const qualifier
Kevin Rushforth
kevin.rushforth at oracle.com
Tue Apr 12 22:24:56 UTC 2016
Hi Ali,
The production build of FX is done using VS2013 and we haven't seen this
error. Where are you getting FX from? Are you using VS2013 Express or
Pro? If Express, be aware that we do not support 64-bit builds (although
this is not likely your problem).
-- Kevin
Ali Ebrahimi wrote:
> Hi,
> When building with VS2013 I get following error:
>
> ..\..\..\..\src\main\native\Source\WebCore\platform\java\api\BackForwardListJava.cpp(46)
> : error C2664: 'jmethodID initMethod(JNIEnv *,jclass,char *,const char
> *)' : cannot convert argument 3 from 'const char [7]' to 'char *'
> Conversion from string literal loses const qualifier (see
> /Zc:strictStrings)
> ..\..\..\..\src\main\native\Source\WebCore\platform\java\api\BackForwardListJava
> .cpp(87) : error C2664: 'jmethodID initMethod(JNIEnv *,jclass,char *,const
> char*)' : cannot convert argument 3 from 'const char [18]' to 'char *'
> Conversion from string literal loses const qualifier (see
> /Zc:strictStrings)
> ..\..\..\..\src\main\native\Source\WebCore\platform\java\api\BackForwardListJava.cpp(98)
> : error C2664: 'jmethodID initMethod(JNIEnv *,jclass,char *,const char
> *)' : cannot convert argument 3 from 'const char [20]' to 'char *'
> Conversion from string literal loses const qualifier (see
> /Zc:strictStrings)
> ..\..\..\..\src\main\native\Source\WebCore\platform\java\api\BackForwardListJava
> .cpp(311) : error C2664: 'jmethodID initMethod(JNIEnv *,jclass,char *,const
> char *)' : cannot convert argument 3 from 'const char [14]' to 'char *'
> Conversion from string literal loses const qualifier (see
> /Zc:strictStrings)
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
> 12.0
> \VC\BIN\amd64\cl.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '(' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.
> :web:compileNativeWin FAILED
>
More information about the openjfx-dev
mailing list