EasyLogger icon indicating copy to clipboard operation
EasyLogger copied to clipboard

keil上移植file插件时编译报错

Open ghost opened this issue 5 years ago • 4 comments

..\source\thirdparty\EasyLogger\plugins\file\elog_file.c(29): error: #5: cannot open source input file "unistd.h": No such file or directory

ghost avatar Jun 10 '20 09:06 ghost

试着把这个头文件屏蔽掉,看看还有哪些错误

armink avatar Jun 11 '20 01:06 armink

keil环境下以下几个文件都找不到: #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> 但屏蔽后编译报错,因为elog_file.c内使用了一些上面头文件定义的方法或结构体,比如:struct stat statbuf;

ghost avatar Jun 11 '20 01:06 ghost

看下能不能精简一下

armink avatar Jun 11 '20 03:06 armink

文件插件的代码做了更新,你再试试哈

armink avatar Jun 13 '20 04:06 armink