Commit d89628bb authored by gabime's avatar gabime

fixed makefile

parent 0e3120ba
CXX = g++ 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 CXX_RELEASE_FLAGS = -O3 -flto
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
// //
#include <iostream> #include <iostream>
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
#include "spdlog/details/format.h"
int main(int, char* []) int main(int, char* [])
{ {
...@@ -36,6 +36,8 @@ int main(int, char* []) ...@@ -36,6 +36,8 @@ int main(int, char* [])
try try
{ {
fmt::print("Hello man {} {:1f}\n", 1, 2.2);
return 0;
std::string filename = "logs/spdlog_example"; std::string filename = "logs/spdlog_example";
// Set log level to all loggers to DEBUG and above // Set log level to all loggers to DEBUG and above
spd::set_level(spd::level::DEBUG); spd::set_level(spd::level::DEBUG);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment