[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

猜你喜欢

转载自aigo.iteye.com/blog/2282908