Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux C++编译异常 #147

Open
houzhiyuan0428 opened this issue Oct 12, 2023 · 1 comment
Open

Linux C++编译异常 #147

houzhiyuan0428 opened this issue Oct 12, 2023 · 1 comment

Comments

@houzhiyuan0428
Copy link

/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

@Mr-zhang-97
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants