|
|
| | -文章搜索 - 最新文章 - | |
keil 7.0编译出现:error C316: unterminated conditionals |
| 发布时间:2002年5月14日 点击次数:6373 |
| 来源: 作者: |
v7.0的setjmp.h文件比6.23的做了改动.v7.0的setjmp.h文件有语法错误. v7.0的setjmp.h内容如下: /*-------------------------------------------------------------------------- SETJMP.H Prototypes for longjmp facility. Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc. All rights reserved. --------------------------------------------------------------------------*/ /* define the buffer type for holding the state information */ #ifdef __CX51__ #ifndef _JMP_BUF_DEFINED #define _JBLEN 9 /* SP, SPE, ?C_XBP, ?C_IBP, ?C_PBP, RET-ADDR */ #else #ifndef _JMP_BUF_DEFINED #define _JBLEN 7 /* RET-ADDR, ?C_XBP, ?C_IBP, ?C_PBP, SP */ #endif typedef char jmp_buf[_JBLEN]; #define _JMP_BUF_DEFINED /* function prototypes */ int setjmp (jmp_buf); void longjmp (jmp_buf, int); =========================================== 而V6.23的setjmp.h内容如下: /*-------------------------------------------------------------------------- SETJMP.H Prototypes for longjmp facility. Copyright (c) 1988-2001 Keil Elektronik GmbH and Keil Software, Inc. All rights reserved. --------------------------------------------------------------------------*/ /* define the buffer type for holding the state information */ #pragma SAVE #pragma REGPARMS #ifndef _JMP_BUF_DEFINED #define _JBLEN 7 /* RET-ADDR, ?C_XBP, ?C_IBP, ?C_BP, SP */ typedef char jmp_buf[_JBLEN]; #define _JMP_BUF_DEFINED #endif /* function prototypes */ int setjmp (jmp_buf); void longjmp (jmp_buf, int); #pragma RESTORE =================================== 这两个文件不同,当包含该文件时,也就是#include 时会导致编译错误. 这应该是软件的一个新的bug.建议不要使用setjmp.h或者对setjmp.h使用旧版本的文件. |
|
|
|
|
[单片机] 相关文章: 请问:ERROR 104: MULTIPLE PUBLIC DEFINITIONS是什么意思,如何产生的?简介:
请问:ERROR 104: MULTIPLE PUBLIC DEFINITIONS是什么意思,如何产生的? 答: 重复定义。比如头文件重复声明,变量或者函数定义重复等。 ...... :#pragma REGISTERBANK(0) 什么意思?
编译出现:***WARNING L16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS SEGMENT
怎么好像idata 跟data一样用的都是ram的低128字节
外部中断使能后,向P3.2或P3.3写0会触发外部中断吗?
全部的国标二级汉字
贴片电阻的精度是如何规定的?
通常用法的 51单片机 UART 0 初始化程序
IDATA的地址范围是从0到ffh还是从80h到ffh?
os_wait (K_TMO + K_SIG, 250, 0)中的“+”就是“|”吗,是不是都代表或的意思? |
|
|
|