keil上移植file插件时编译报错
opened this issue · comments
Deleted user commented
..\source\thirdparty\EasyLogger\plugins\file\elog_file.c(29): error: #5: cannot open source input file "unistd.h": No such file or directory
朱天龙 (Armink) commented
试着把这个头文件屏蔽掉,看看还有哪些错误
Deleted user commented
keil环境下以下几个文件都找不到:
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
但屏蔽后编译报错,因为elog_file.c内使用了一些上面头文件定义的方法或结构体,比如:struct stat statbuf;
朱天龙 (Armink) commented
看下能不能精简一下
朱天龙 (Armink) commented
文件插件的代码做了更新,你再试试哈