[UE4]Android编译错误:error: ISO C++11 does not allow conversion from string literal

 

安卓打包编译代码时报错:

 error: ISO C++11 does not allow conversion from string literal to 'TCHAR *' (aka 'wchar_t *') [-Werror,-Wwritable-string

 

解决办法:

将函数中的参数 TCHAR* aaa 改成 const TCHAR* aaa

 

参考:

https://answers.unrealengine.com/questions/194266/how-to-fix-the-text-macro-on-iososx.html

 

 

 

你可能感兴趣的:(UE4)