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

/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:94: undefined reference to `google::FlagRegisterer::FlagRegisterer<stdcollect2: error: ld returned 1 exit status #17

Open
jianhuaixie opened this issue Nov 12, 2017 · 1 comment

Comments

@jianhuaixie
Copy link

/home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:100: undefined reference to google::FlagRegisterer::FlagRegisterer<int>(char const*, char const*, char const*, int*, int*)' collect2: error: ld returned 1 exit status Makefile:1109: recipe for target 'symbolize_unittest' failed make[3]: *** [symbolize_unittest] Error 1 make[3]: *** 正在等待未完成的任务.... Makefile:1073: recipe for target 'logging_striptest2' failed make[3]: *** [logging_striptest2] Error 1 src/demangle_unittest-demangle_unittest.o: In function __static_initialization_and_destruction_0':
/home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:93: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' /home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:94: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)'
/home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:96: undefined reference to google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' /home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:100: undefined reference to google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, int*, int*)'
src/demangle_unittest-demangle_unittest.o: In function __static_initialization_and_destruction_0': /home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/demangle_unittest.cc:49: undefined reference to google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, bool*, bool*)'
collect2: error: ld returned 1 exit status
src/stl_logging_unittest-stl_logging_unittest.o: In function __static_initialization_and_destruction_0': /home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:93: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)'
/home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:94: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' /home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:96: undefined reference to google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, bool*, bool*)'
/home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:100: undefined reference to google::FlagRegisterer::FlagRegisterer<int>(char const*, char const*, char const*, int*, int*)' collect2: error: ld returned 1 exit status Makefile:1055: recipe for target 'demangle_unittest' failed make[3]: *** [demangle_unittest] Error 1 Makefile:1103: recipe for target 'stl_logging_unittest' failed make[3]: *** [stl_logging_unittest] Error 1 ./.libs/libglog.so: undefined reference to google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, int*, int*)'
./.libs/libglog.so: undefined reference to google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' ./.libs/libglog.so: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)'
collect2: error: ld returned 1 exit status
Makefile:1097: recipe for target 'stacktrace_unittest' failed
make[3]: *** [stacktrace_unittest] Error 1
src/utilities_unittest-utilities_unittest.o: In function __static_initialization_and_destruction_0': /home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:93: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)'
/home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:94: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' /home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:96: undefined reference to google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, bool*, bool*)'
/home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:100: undefined reference to google::FlagRegisterer::FlagRegisterer<int>(char const*, char const*, char const*, int*, int*)' collect2: error: ld returned 1 exit status src/logging_striptest0-logging_striptest_main.o: In function __static_initialization_and_destruction_0':
/home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/logging_striptest_main.cc:42: undefined reference to google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' ./.libs/libglog.so: undefined reference to google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, int*, int*)'
./.libs/libglog.so: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' collect2: error: ld returned 1 exit status Makefile:1115: recipe for target 'utilities_unittest' failed make[3]: *** [utilities_unittest] Error 1 Makefile:1061: recipe for target 'logging_striptest0' failed make[3]: *** [logging_striptest0] Error 1 src/logging_unittest-logging_unittest.o: In function __static_initialization_and_destruction_0':
/home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:93: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' /home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:94: undefined reference to google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)'
/home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:96: undefined reference to google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' /home/jianhuaixie/ros/catkin_ws/build/glog_catkin/glog_src-prefix/src/glog_src/src/googletest.h:100: undefined reference to google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, int*, int*)'
collect2: error: ld returned 1 exit status
Makefile:1079: recipe for target 'logging_unittest' failed
make[3]: *** [logging_unittest] Error 1
glog_catkin/CMakeFiles/glog_src.dir/build.make:113: recipe for target 'glog_catkin/glog_src-prefix/src/glog_src-stamp/glog_src-build' failed
make[2]: *** [glog_catkin/glog_src-prefix/src/glog_src-stamp/glog_src-build] Error 2
CMakeFiles/Makefile2:450: recipe for target 'glog_catkin/CMakeFiles/glog_src.dir/all' failed
make[1]: *** [glog_catkin/CMakeFiles/glog_src.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

@wilselby
Copy link
Owner

What command generated this? Are you still having this error?

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