From d89628bb173f0e43dbd93a0e375462a7fb234c28 Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 2 Dec 2014 02:38:31 +0200 Subject: [PATCH] fixed makefile --- bench/Makefile | 2 +- example/example.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bench/Makefile b/bench/Makefile index 4ffd5455..6a1e93ca 100644 --- a/bench/Makefile +++ b/bench/Makefile @@ -1,5 +1,5 @@ CXX = g++ -CXXFLAGS = --march=native -Wall -Wshadow -Wextra -pedantic -std=c++11 -pthread -Wl,--no-as-needed -I../include +CXXFLAGS = -march=native -Wall -Wshadow -Wextra -pedantic -std=c++11 -pthread -Wl,--no-as-needed -I../include CXX_RELEASE_FLAGS = -O3 -flto diff --git a/example/example.cpp b/example/example.cpp index 927578fe..4e464107 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -27,7 +27,7 @@ // #include #include "spdlog/spdlog.h" - +#include "spdlog/details/format.h" int main(int, char* []) { @@ -36,6 +36,8 @@ int main(int, char* []) try { + fmt::print("Hello man {} {:1f}\n", 1, 2.2); + return 0; std::string filename = "logs/spdlog_example"; // Set log level to all loggers to DEBUG and above spd::set_level(spd::level::DEBUG);