Gcc Error Object Missing In Reference To
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up C++ “error: ”object missing in reference to …" depends on gcc version up vote 3 down vote favorite I am facing a compilation error with one gcc version (4.3.2), whereas the same code will be compiled without complaints with a newer version of gcc, e.g. 4.5.2. The following example illustrates the problem: class Base { protected: int member; }; template
Re: gcc4.1.0: error: object missing in reference to From: John Love-Jensen
Sign https://github.com/google/protobuf/issues/1035 in Pricing Blog Support Search GitHub This repository Watch 1,190 Star 12,494 Fork 3,766 google/protobuf Code Issues 426 Pull requests 120 Projects 0 Wiki Pulse Graphs New issue Getting Compilation error in protobuf 3.0.0 gcc error beta-1 #1035 Open bijaya012 opened this Issue Dec 9, 2015 · 6 comments Projects None yet Labels bug c++ help wanted Milestone No milestone Assignees No one assigned 6 participants bijaya012 commented Dec gcc error object 9, 2015 I am getting below compilation error. libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/dynamic_message.lo -MD -MP -MF google/protobuf/.deps/dynamic_message.Tpo -c google/protobuf/dynamic_message.cc -fPIC -DPIC -o google/protobuf/.libs/dynamic_message.o ./google/protobuf/stubs/hash.h: In instantiation of 'google::protobuf::hash': ./google/protobuf/map.h:839: instantiated from here ./google/protobuf/stubs/hash.h:269: error: invalid use of undefined type 'struct std::tr1::hash' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional:1101: error: declaration of 'struct std::tr1::hash' ./google/protobuf/map.h: In member function 'size_t google::protobuf::hashgoogle::protobuf::MapKey::operator()(const google::protobuf::MapKey&) const': ./google/protobuf/map.h:839: error: no match for call to '(google::protobuf::hash) (google::protobuf::int64)' ./google/protobuf/stubs/hash.h: At global scope: ./google/protobuf/stubs/hash.h: In instantiation of 'google::protobuf::hash': ./google/protobuf/map.h:843: instantiated from here ./google/protobuf/stubs/hash.h:269: error: invalid use of undefined type 'struct std::tr1::hash' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional:1101: error: declaration of 'struct