微信VOIP云对云方案SDK中静态库链接到ASR工程中时,出现如下报错:
Error: L6242E: Cannot link object wxvoip_client.c.obj as its attributes are incompatible with the image attributes.
... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object device_key_encrypt.c.obj as its attributes are incompatible with the image attributes.
... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object cbase64.c.obj as its attributes are incompatible with the image attributes.
... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object core_json.c.obj as its attributes are incompatible with the image attributes.
... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object hmac_sha256.c.obj as its attributes are incompatible with the image attributes.
... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object cstring.c.obj as its attributes are incompatible with the image attributes.
... wchart-16 clashes with wchart-32.
Error: L6242E: Cannot link object hal_os.c.obj as its attributes are incompatible with the image attributes.
... wchart-16 clashes with wchart-32.
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 9 information, 0 warning and 7 error messages.
编译工具armcc.exe,版本5.06,使用的静态库为cloudvoipsdk/device/v4/lib/asr-cortex-r5/libwxcloudvoip_client.a
编译选项使用--wchar16和--wchar32均在链接时报错。
这个可能是对应的静态库不兼容你的 SDK。
armcc.exe -c --cpu Cortex-R4 --no_unaligned_access -g -O2 --apcs /inter --diag_suppress 2084,1,2,177,550,6319 --diag_error 47 --gnu --thumb --loose_implicit_cast