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