小编Pra*_*tik的帖子

错误[P​​e020]:标识符“FILE”在 IAR Workbench 中未定义

// Preprocessor directive mention in <> formate :
#include "stdio.h"
#include "stdlib.h"
#include "math.h"
#include "string.h"
#include "limits.h"
#include "stddef.h"
#include "stdint.h"
...
int main()
{
 FILE *fin, *fout;  //Error[Pe020]: identifier "FILE" is undefined
 ...
 ...
 ...
 fprintf(stderr, "%s\n", opus_get_version_string());              
                         //Error[Pe020]: identifier "stderr" is undefined 

}
Run Code Online (Sandbox Code Playgroud)

根据上面的代码我得到了两个错误:

1)“错误[Pe020]:标识符“FILE”未定义”

当我找到 stdlib.h 时,没有任何类型的“FILE”指令定义或 typedef。所以,请告诉我 stdlib.h 或 stdio.h 需要进行哪些更改

2)错误[Pe020]:标识符“stderr”未定义

那么,stderr定义在哪个头文件中呢?

请告诉我如何解决上述错误?

提前致谢。

compiler-errors file stderr iar

5
推荐指数
1
解决办法
5261
查看次数

标签 统计

compiler-errors ×1

file ×1

iar ×1

stderr ×1