You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include"quill/Backend.h"
#include"quill/Frontend.h"
#include"quill/LogMacros.h"
#include"quill/Logger.h"
#include"quill/sinks/ConsoleSink.h"
quill::Logger* start_logger();
intmain(){
LOG_INFO(start_logger(), "This is a log info example {}", 123);
}
When compiled, the the logger does not print anything to the terminal. This is because the singletons (the static instance()) functions are not properly exposed in the shared library.
This is a similar issue to #222. Manually exporting the various static instance() functions by [[gnu::visibility("default")]] solves the issue on linux.
The text was updated successfully, but these errors were encountered:
Hey, thanks for reporting. I think I removed those since the library is header only i wasn't expecting it to build as shared library anymore. I will get it fixed over the next few days
odygrd
changed the title
Necessary singletons are not exposed when compiling library with hidden visibility
Necessary singletons are not exposed when compiling shared library with hidden visibility
Jun 3, 2024
Consider the following toy example:
CMakeLists.txt
:logger_lib.cpp
logger.cpp
When compiled, the the logger does not print anything to the terminal. This is because the singletons (the static
instance()
) functions are not properly exposed in the shared library.This is a similar issue to #222. Manually exporting the various static
instance()
functions by[[gnu::visibility("default")]]
solves the issue on linux.The text was updated successfully, but these errors were encountered: