{"action":"opened","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/3045","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/3045/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/3045/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/3045/events","html_url":"https://github.com/BVLC/caffe/issues/3045","id":105518656,"number":3045,"title":"undefined reference error on make all","user":{"login":"kracwarlock","id":994080,"avatar_url":"https://avatars.githubusercontent.com/u/994080?v=3","gravatar_id":"","url":"https://api.github.com/users/kracwarlock","html_url":"https://github.com/kracwarlock","followers_url":"https://api.github.com/users/kracwarlock/followers","following_url":"https://api.github.com/users/kracwarlock/following{/other_user}","gists_url":"https://api.github.com/users/kracwarlock/gists{/gist_id}","starred_url":"https://api.github.com/users/kracwarlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kracwarlock/subscriptions","organizations_url":"https://api.github.com/users/kracwarlock/orgs","repos_url":"https://api.github.com/users/kracwarlock/repos","events_url":"https://api.github.com/users/kracwarlock/events{/privacy}","received_events_url":"https://api.github.com/users/kracwarlock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-09T04:55:32Z","updated_at":"2015-09-09T04:55:32Z","closed_at":null,"body":"I get the following output\r\n\r\n    CXX/LD -o .build_release/tools/caffe.bin\r\n    .build_release/tools/caffe.o: In function `main':\r\n    caffe.cpp:(.text.startup+0x3e): undefined reference to `google::SetUsageMessage(std::string const&)'\r\n    caffe.cpp:(.text.startup+0x7b): undefined reference to `google::ShowUsageWithFlagsRestrict(char const*, char const*)'\r\n    .build_release/tools/caffe.o: In function `_GLOBAL__sub_I_caffe.cpp':\r\n    caffe.cpp:(.text.startup+0x2e3): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'\r\n    caffe.cpp:(.text.startup+0x361): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'\r\n    caffe.cpp:(.text.startup+0x3df): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'\r\n    caffe.cpp:(.text.startup+0x45d): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'\r\n    caffe.cpp:(.text.startup+0x4db): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'\r\n    .build_release/tools/caffe.o:caffe.cpp:(.text.startup+0x526): more undefined references to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)' follow\r\n    .build_release/lib/libcaffe.so: undefined reference to `google::ParseCommandLineFlags(int*, char***, bool)'\r\n    collect2: error: ld returned 1 exit status\r\n    make: *** [.build_release/tools/caffe.bin] Error 1\r\n\r\nI compiled the C3D variant of caffe at https://github.com/facebook/C3D and that compiles fine. I also use:\r\n    export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/pkgs/gflags/include"}}