收藏
回答

微信VOIP云对云方案SDK静态库链接报错?

微信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均在链接时报错。

最后一次编辑于  09-11
回答关注问题邀请回答
收藏

1 个回答

  • 高
    09-11

    这个可能是对应的静态库不兼容你的 SDK。

    09-11
    有用
    回复 1
    • 阿布
      阿布
      09-11
      那能给出一个兼容的静态库吗,我用的编译工具链是这个
      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
      09-11
      回复
登录 后发表内容