kevinmgyu commented on issue #695: gflags(2.1.2-3),g++( 4:5.3.1-1ubuntu1) protobuf( 2.6.1-1.3) Linux make编译错误 URL: https://github.com/apache/incubator-brpc/issues/695#issuecomment-475106478 cmake编译也报类似错误 [ 95%] Linking CXX executable ../output/bin/protoc-gen-mcpack /usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake) ../output/lib/libbrpc.so: undefined reference to `google::SetCommandLineOption(char const*, char const*)' ../output/lib/libbrpc.so: undefined reference to `google::GetCommandLineOption(char const*, std::string*)' ../output/lib/libbrpc.so: undefined reference to `google::RegisterFlagValidator(std::string const*, bool (*)(char const*, std::string const&))' collect2: error: ld returned 1 exit status src/CMakeFiles/protoc-gen-mcpack.dir/build.make:103: recipe for target 'output/bin/protoc-gen-mcpack' failed make[2]: *** [output/bin/protoc-gen-mcpack] Error 1 CMakeFiles/Makefile2:245: recipe for target 'src/CMakeFiles/protoc-gen-mcpack.dir/all' failed make[1]: *** [src/CMakeFiles/protoc-gen-mcpack.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 ///////////////////////////////////////////// 但是静态库的符号表中可以查到这些函数,why?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
