-
|
There are several libraries and one process main function. All libraries and main record to same log file or stdout. I try to put the code in singleton, like logger.hpp libmyso1.so/libmyso2.so/libmyso3.so are almost same like: main.cpp as for main process Makefile |
Beta Was this translation helpful? Give feedback.
Answered by
tt4g
Sep 10, 2024
Replies: 1 comment 8 replies
-
|
Example: https://github.com/gabime/spdlog/wiki/How-to-use-spdlog-in-DLLs By the way, is the double free occurring in spdlog? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

In C++, declaring a
staticvariable in a class declaration creates a copy of the same variable in all modules that include the header file.Do not declare
staticvariables in the class body.It is safe to declare
staticvariables in class functions written incppfiles.