This is a linker error. Try:
g++ test.cpp Telephone.cpp -o test
Basically, the linker is complaining about functions you used but didn’t provide an implementation for. To see all the steps the compiler performs for you, throw in a -v:
g++ -v test.cpp Telephone.cpp -o test
Related Posts:
- Update GCC on OSX
- What is the difference between g++ and gcc?
- Sleep for milliseconds
- Sleep for milliseconds
- Expression must have class type
- C++ undefined reference to defined function
- c++ “Incomplete type not allowed” error accessing class reference information (Circular dependency with forward declaration)
- Why is enum class preferred over plain enum?
- Why am I getting this redefinition of class error?
- Single class has a Class Redefinition Error
- Undefined reference to vtable
- C++ Linked List Node with class
- error: lvalue required as unary & operand
- (->) arrow operator and (.) dot operator , class pointer
- How to print pthread_t
- error: lvalue required as unary & operand
- make: g++: Command not found
- Undefined reference to vtable
- Why am I getting “undefined reference to main”
- Compiling C++11 with g++
- Separating class code into a header and cpp file
- how to define -std=c++11 as default in g++
- “g++” is not recognized as an internal or external command, MinGW
- Pointer to incomplete class type is not allowed
- Why am I getting this redefinition of class error?
- Using O_RDWR vs O_RDONLY | O_WRONLY
- Eclipse C++ : “Program “g++” not found in PATH”
- no default constructor exists for class
- Fatal error: iostream: No such file or directory in compiling C program using GCC
- Getting error “a nonstatic member reference must be relative to a specific object” while both member are in the same class
- “g++” is not recognized as an internal or external command, MinGW
- Compiling a C++ program with gcc
- Error “C++ requires a type specifier for all declarations whilst defining methods”
- What are the differences between struct and class in C++?
- Undefined reference to class constructor, including .cpp file fixes
- error C2011: ” : ‘class’ type redefinition
- gcc/g++: “No such file or directory”
- error: use of deleted function
- Undefined reference to constructor
- The compiler is complaining about my default parameters?
- C++ Linked List Node with class
- expected unqualified-id before string constant
- Getting error: ISO C++ forbids declaration of with no type
- cc1plus: error: unrecognized command line option “-std=c++11” with g++
- “used without template parameters”
- extra qualification error in C++
- C++ Error ‘nullptr was not declared in this scope’ in Eclipse IDE
- expected constructor, destructor, or type conversion before ‘(’ token
- C++ Class ‘undeclared identifier”
- c++ “Incomplete type not allowed” error accessing class reference information (Circular dependency with forward declaration)
- Base class undefined
- expected identifier before string constant
- Warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11?
- What is the meaning of a C++ Wrapper Class?
- Error: free(): invalid next size (fast):
- Error: free(): invalid next size (fast):
- C++ variable has initializer but incomplete type?
- Does C++11 have C#-style properties?
- I get this error: “glibc detected”
- Implementing a tree in C++
- Undefined reference to class constructor, including .cpp file fixes
- Creating an instance of class
- C++ error: undefined reference to ‘clock_gettime’ and ‘clock_settime’
- C++ : Exception occurred in script: basic_string::_S_construct NULL not valid
- Difference between
and - Getting a bunch of crosses initialization error
- expected primary-expression before ‘]’ token
- Expected unqualified-id before ‘[‘ token
- Fatal error: iostream: No such file or directory in compiling C program using GCC
- What does “-Wall” in “g++ -Wall test.cpp -o test” do?
- Is there a way to compile C++ to C Code?
- Compiling C++11 with g++
- What is a .h.gch file?
- error C2039: ‘string’ : is not a member of ‘std’, header file problem
- istream and ostream problem – C++
- Update g++ but still old version
- Struct with template variables in C++
- error: no member function declared in class
- Here is some error with my .h file which show [Error] unterminated #ifndef when I include my class template in it
- Error: invalid use of member in static member function
- Link error “undefined reference to `__gxx_personality_v0′” and g++ [duplicate]
- Floating point exception( core dump
- Passing Arrays to Function in C++
- What causes a SIGABRT fault?
- Graphics Library for C++
- ‘cout’ was not declared in this scope
- warning: ISO C++ forbids variable length array
- cin >> “no operator matches these operands”
- C++ Structure Initialization
- C: using strtol endptr is never NULL, cannot check if value is integer only?
- use of class template requires template argument list
- Why would this give a Use of uninitialised value of size 8
- C++ Error: Type Name is Not Allowed
- Static vs dynamic type checking in C++
- “No rule to make target ‘install'”… But Makefile exists
- Declaration is incompatible with type
- One or more multiply defined symbols found
- I’m getting the error “stoi is not a member of std” in myprogramminglab [duplicate]
- Template constructor in a class template – how to explicitly specify template argument for the 2nd parameter?
- C++ float array initialization