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

Built error Ubuntu 16.04 and latest v1.x (173d065) #2354

Closed
atasoglou opened this issue May 3, 2022 · 1 comment
Closed

Built error Ubuntu 16.04 and latest v1.x (173d065) #2354

atasoglou opened this issue May 3, 2022 · 1 comment

Comments

@atasoglou
Copy link

atasoglou commented May 3, 2022

Using the default built commands and latest commit 173d065 for v1.x

Gcc: 5.4.0

$ git clone https://github.com/gabime/spdlog.git
$ cd spdlog && mkdir build && cd build
$ cmake .. && make -j

I am getting the following error on the example:

make -j
[ 10%] Building CXX object CMakeFiles/spdlog.dir/src/fmt.cpp.o
[ 20%] Building CXX object CMakeFiles/spdlog.dir/src/file_sinks.cpp.o
[ 30%] Building CXX object CMakeFiles/spdlog.dir/src/async.cpp.o
[ 40%] Building CXX object CMakeFiles/spdlog.dir/src/spdlog.cpp.o
[ 50%] Building CXX object CMakeFiles/spdlog.dir/src/color_sinks.cpp.o
[ 60%] Building CXX object CMakeFiles/spdlog.dir/src/stdout_sinks.cpp.o
[ 70%] Building CXX object CMakeFiles/spdlog.dir/src/cfg.cpp.o
[ 80%] Linking CXX static library libspdlog.a
[ 80%] Built target spdlog
[ 90%] Building CXX object example/CMakeFiles/example.dir/example.cpp.o
/home/tanasaki/spdlog/example/example.cpp:267:17: error: specialization of ‘template<class T, class Char, class Enable> struct fmt::v8::formatter’ in different namespace [-fpermissive]
 struct fmt_lib::formatter<my_type> : fmt_lib::formatter<std::string>
                 ^
In file included from /home/tanasaki/spdlog/include/spdlog/fmt/fmt.h:24:0,
                 from /home/tanasaki/spdlog/include/spdlog/common.h:45,
                 from /home/tanasaki/spdlog/include/spdlog/spdlog.h:12,
                 from /home/tanasaki/spdlog/example/example.cpp:29:
/home/tanasaki/spdlog/include/spdlog/fmt/bundled/core.h:707:8: error:   from definition of ‘template<class T, class Char, class Enable> struct fmt::v8::formatter’ [-fpermissive]
 struct formatter {
        ^
example/CMakeFiles/example.dir/build.make:75: recipe for target 'example/CMakeFiles/example.dir/example.cpp.o' failed
make[2]: *** [example/CMakeFiles/example.dir/example.cpp.o] Error 1
CMakeFiles/Makefile2:125: recipe for target 'example/CMakeFiles/example.dir/all' failed
make[1]: *** [example/CMakeFiles/example.dir/all] Error 2
Makefile:155: recipe for target 'all' failed
make: *** [all] Error 2
@tt4g
Copy link
Contributor

tt4g commented May 3, 2022

Duplicate #2333

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

No branches or pull requests

3 participants