error C4235: nonstandard extension used: ‘__asm‘ keyword not supported on this architecture

error C4235: nonstandard extension used: '__asm' keyword not supported on this architecture

32位程序不能在64位模式下编译。

要么以32位方式编译,

要么安装Intel C++ Compiler XE

使用了非标准扩展:此体系结构不支持关键字“__asm” 编译器不支持您使用的关键字。 例如,安腾处理器系列(IPF)编译器不支持_asm关键字。所有程序集代码都必须写在单独的文件中,或者应该通过内部函数使用。有关更多信息,请参阅“英特尔64位平台上可用的内部特性”。 此警告会自动升级为错误。如果您希望修改此行为,请使用#pragma警告。例如,要将C4235设置为2级警告,请使用以下代码行

  • 11
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]:#181-D…\HARDWARE\src\uart.c(399): warning: #181-D: argument is incompatible with corresponding format string conversion printf(“process msg:%s %d\r\n”,&Process_ptr,&Process_ptr);修改:参数与相应的格式字符串转换不兼容 。 引用\[2\]:#513…\HARDWARE\src\uart.c(396): error: #513: a value of type “u8 *” cannot be assigned to an entity of type “uint8_t” temp = USART2_RX_BUF;修改: 。 引用\[3\]:#1441-D…\HEADWARE\USBProcess\USBProcess.c(298): warning: #1441-D: nonstandard cast on lvalue (u8 *)send_buf\[193\] = acount_len\[0\];修改:非标强制转换 。 问题:user\API\LCD1.c(112): error: #171: invalid type conversion 回答: 根据您提供的引用内容,错误代码#171表示无效的类型转换。具体来说,这个错误可能是由于在user\API\LCD1.c文件的第112了一个无效的类型转换导致的。要解决这个问题,您需要检查第112代码,并确保进的类型转换是有效的。如果需要,您可能需要更改代码使用正确的类型转换。 #### 引用[.reference_title] - *1* *2* *3* [stm32MDK错误码(不定时更新)](https://blog.csdn.net/I_O_fly/article/details/112184004)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值