error: undefined reference to `el::base::Writer::construct(int, char const*, ...)'
时间: 2023-09-15 12:15:06 浏览: 195
This error indicates that the linker cannot find the definition for `el::base::Writer::construct` function.
This error often occurs when you are using a library that is not properly linked to your project. To solve this error, you need to ensure that you have linked the necessary libraries to your project.
If you are using an external library, make sure that you have included the library's header files and added the library to your linker command line. If you are using an IDE, you may need to specify the library in your project settings.
If you are still having trouble, please provide more information about your project setup and the libraries you are using.
相关问题
编译出现error: undefined reference to `el::base::Writer::construct(int, char const*, ...)'
这个错误提示说明链接器无法找到 `el::base::Writer::construct` 函数的定义。
通常出现这个错误的原因是你使用了一个没有正确链接到项目中的库。为了解决这个错误,你需要确保你已经链接了必要的库到你的项目中。
如果你使用的是外部库,确保你已经包含了库的头文件并将库添加到链接器命令行中。如果你使用的是 IDE,你可能需要在项目设置中指定库。
如果你仍然有问题,请提供有关你的项目设置和使用的库的更多信息。
阅读全文