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

fmt::output_file unusable in header only #3708

Closed
Allybag opened this issue Nov 8, 2023 · 1 comment
Closed

fmt::output_file unusable in header only #3708

Allybag opened this issue Nov 8, 2023 · 1 comment
Labels

Comments

@Allybag
Copy link

Allybag commented Nov 8, 2023

Attempting to use fmt::output_file gives the following linker error when installed only as headers, as the missing functions are all only in os.cc:

ld: Undefined symbols:
fmt::v10::detail::file_buffer::file_buffer(fmt::v10::basic_cstring_view, fmt::v10::detail::ostream_params const&), referenced from:
_main in main.cpp.o
fmt::v10::ostream::~ostream(), referenced from:
_main in main.cpp.o
_main in main.cpp.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Would it be possible to support this?

Thanks for a great project!

@vitaut
Copy link
Contributor

vitaut commented Nov 8, 2023

There are no plans to extend header-only support to system APIs (fmt/os.h).

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

No branches or pull requests

2 participants