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

拉下来代码编译失败,求大佬看下 #2

Open
ImMrMa opened this issue Mar 8, 2023 · 1 comment
Open

拉下来代码编译失败,求大佬看下 #2

ImMrMa opened this issue Mar 8, 2023 · 1 comment

Comments

@ImMrMa
Copy link

ImMrMa commented Mar 8, 2023

Scanning dependencies of target component_test
Scanning dependencies of target factory_test
[ 25%] Building CXX object CMakeFiles/factory_test.dir/test/factory_test.cpp.o
[ 50%] Building CXX object CMakeFiles/component_test.dir/test/component_test.cpp.o
In file included from /data/project/mc40/cpp_debug/entity_component_factory/test/factory_test.cpp:1:0:
/data/project/mc40/cpp_debug/entity_component_factory/include/factory.h:337:44: error: template definition of non-template ‘bool spiritsaway::entity_component_event::basic_poly_factory<ptr_t, Base, Args>::sub_class<T, B>::registered’
        Args...>::template sub_class<T, B>::registered =
                                            ^~~~~~~~~~
In file included from /data/project/mc40/cpp_debug/entity_component_factory/include/entity.h:2:0,
                 from /data/project/mc40/cpp_debug/entity_component_factory/include/entity_manager.h:3,
                 from /data/project/mc40/cpp_debug/entity_component_factory/test/component_test.cpp:1:
/data/project/mc40/cpp_debug/entity_component_factory/include/factory.h:337:44: error: template definition of non-template ‘bool spiritsaway::entity_component_event::basic_poly_factory<ptr_t, Base, Args>::sub_class<T, B>::registered’
        Args...>::template sub_class<T, B>::registered =
                                            ^~~~~~~~~~
CMakeFiles/factory_test.dir/build.make:62: recipe for target 'CMakeFiles/factory_test.dir/test/factory_test.cpp.o

大佬求看下,我用你的源码卡在了最后触发器这一步,并不是太懂为什么

@huangfeidian
Copy link
Owner

我gcc 9 和msvc 2019都没问题啊 你编译器版本是啥?

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

2 participants