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

Linux C++编译异常

houzhiyuan0428 opened this issue · comments

/usr/bin/ld: out/elog_file.o: in function elog_file_write': /home/rhytech/Documents/elog/EasyLogger/demo/os/linux/../../../easylogger/plugins/file/elog_file.c:120: undefined reference to elog_file_port_lock'
/usr/bin/ld: /home/rhytech/Documents/elog/EasyLogger/demo/os/linux/../../../easylogger/plugins/file/elog_file.c:142: undefined reference to elog_file_port_unlock' /usr/bin/ld: out/elog_file.o: in function elog_file_config':
/home/rhytech/Documents/elog/EasyLogger/demo/os/linux/../../../easylogger/plugins/file/elog_file.c:160: undefined reference to elog_file_port_lock' /usr/bin/ld: /home/rhytech/Documents/elog/EasyLogger/demo/os/linux/../../../easylogger/plugins/file/elog_file.c:176: undefined reference to elog_file_port_unlock'
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: all] Error 1

请检查你的makefile或cmakelist,确保文件路径正确。