Comments (5)
The link will fail if you are not using the same version of spdlog and fmt as the vendor.
EDIT: Compilation options must also match.
from spdlog.
You also need to define the SPDLOG_FMT_EXTERNAL
macro to make spdlog use external fmt: -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL
from spdlog.
Oh, I had overlooked that.
You must build all the src/*.cpp
files, since building only src/spdlog.cpp
will result in missing symbols.
from spdlog.
Oh, I had overlooked that. You must build all the
src/*.cpp
files, since building onlysrc/spdlog.cpp
will result in missing symbols.
But in installation file it says as one of the option to use spdlog:
Or copy src/spdlog.cpp to your build tree and pass the -DSPDLOG_COMPILED_LIB to the compiler
& with current version of the vendor APIs it is working.
We use the vendor APIs in our code & now we have to migrate our code to compile with vendor's new version of APIs (which use fmt, the current version of APIs do no use fmt). The vendor has provided us with fmt header files and informed us they use only fmt-8.1.1.
We tried DSPDLOG_FMT_EXTERNAL and it did not help.
from spdlog.
But in installation file it says as one of the option to use spdlog:
Or copy src/spdlog.cpp to your build tree and pass the -DSPDLOG_COMPILED_LIB to the compiler
Where does it say that?
As far as I know, there is no such documentation in the spdlog repository.
If the vendor is customizing the spdlog, then your question here cannot be resolved.
from spdlog.
Related Issues (20)
- details::os::path_exists(const std::string&) doesn't handle UTF8 filename correctly under Windows HOT 17
- Not able to save logs with rotating_file_sink_mt HOT 2
- Can't seem to get pointer from spdlog::get HOT 7
- warning: C4459: declaration of 'uint' hides global declaration HOT 5
- Mark logging functions as noexcept HOT 5
- MSVC new version, warning MSVC(C4996). HOT 4
- No color with stdout_color_mt HOT 3
- 2.x branch: Some commit after 287d83 broke include directory install HOT 2
- Compiling as a library - but unresolved symbols on link HOT 2
- not support vs2013, msvc18 HOT 1
- error: declaration requires an exit-time destructor HOT 1
- dist_sink vs logger with multiple sinks HOT 2
- file logging not working when application is running as systemd service HOT 6
- force the logger to doing rotate HOT 3
- I use spdlog library in my dll project and create console by calling AllocConsole. HOT 8
- Trying to set different log levels on different sinks... but it's not working HOT 1
- inline registry leads to split instances across .so borders HOT 5
- mirror dialog needs to revert when cancel pressed HOT 2
- static function 'int spdlog::details::to12h(const tm &)' declared but not defined HOT 7
- spdlog not adaptable with newer versions of fmt HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spdlog.