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

Using spdlog with cppformat cause #include order dependency #57

Closed
objectx opened this issue Feb 26, 2015 · 1 comment
Closed

Using spdlog with cppformat cause #include order dependency #57

objectx opened this issue Feb 26, 2015 · 1 comment
Assignees
Labels

Comments

@objectx
Copy link

objectx commented Feb 26, 2015

I've tried using spdlog and cppformat simultaneously. But 1st do #include spdlog/spdlog.h cause error.

#define FMT_HEADER_ONLY in spdlog cause some functions (in the anonymous namespace) were declared twice.

@gabime gabime self-assigned this Feb 26, 2015
@meldavis
Copy link

Workaround: To use both spdlog and cppformat in the same app, I create a header called "format.h" containing only the following line: #include "spdlog/details/format.h"

I include this "format.h" file when I want to bring in the fmt: namespace.

@gabime gabime added the wontfix label May 18, 2015
@gabime gabime closed this as completed May 18, 2015
bachittle pushed a commit to bachittle/spdlog that referenced this issue Dec 22, 2022
* Add fork utility

* Add random number generator

* Add test coverage for random

* Add cmake build files

* Format

* Add missing noexcept

* Fix macro

* Add FastRandomNumberGenerator
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

3 participants