armink / EasyLogger

An ultra-lightweight(ROM<1.6K, RAM<0.3k), high-performance C/C++ log library. | 一款超轻量级(ROM<1.6K, RAM<0.3k)、高性能的 C/C++ 日志库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

opened this issue · comments

..\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;

看下能不能精简一下

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