This is a simple problem.
You just forgot the semi colon at the end of your header file.
The compiler errors you get for missing the semi colon at the end of a class definition are very hard to relate to the actual problem – just get in the habit of checking that when you get errors after you create a class.
Related Posts:
- What is the difference between g++ and gcc?
- Why is “using namespace std;” considered bad practice?
- C++ undefined reference to defined function
- Undefined reference to vtable
- make: g++: Command not found
- Undefined reference to vtable
- Compiling C++11 with g++
- “g++” is not recognized as an internal or external command, MinGW
- Eclipse C++ : “Program “g++” not found in PATH”
- Fatal error: iostream: No such file or directory in compiling C program using GCC
- “g++” is not recognized as an internal or external command, MinGW
- Compiling a C++ program with gcc
- printf with std::string?
- Undefined reference to class constructor, including .cpp file fixes
- C++: std does not have member “string”
- gcc/g++: “No such file or directory”
- error: use of deleted function
- Undefined reference to constructor
- cc1plus: error: unrecognized command line option “-std=c++11” with g++
- extra qualification error in C++
- C++ Error ‘nullptr was not declared in this scope’ in Eclipse IDE
- Error: free(): invalid next size (fast):
- Error: free(): invalid next size (fast):
- I get this error: “glibc detected”
- Update GCC on OSX
- G++ undefined reference to class::function
- Undefined reference to class constructor, including .cpp file fixes
- LLVM Compiler 2.0: Warning with “using namespace std;”
- Difference between
and - Getting a bunch of crosses initialization error
- Expected unqualified-id before ‘[‘ token
- error C2065: ‘cout’ : undeclared identifier
- 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?
- Compiling C++11 with g++
- What is a .h.gch file?
- Update g++ but still old version
- Link error “undefined reference to `__gxx_personality_v0′” and g++ [duplicate]
- What is the ‘override’ keyword in C++ used for? [duplicate]
- Unresolved external symbol in object files
- Mutex example / tutorial? [closed]
- “std::bad_alloc”: am I using too much memory?
- What does “dereferencing” a pointer mean?
- What is a smart pointer and when should I use one?
- check if a std::vector contains a certain object?
- Convert char to int in C and C++
- How to convert a char array to a string?
- How to fix a “invalid operands to binary expression” error?
- Is it possible to decompile a C++ executable file
- Difference between `constexpr` and `const`
- Why there is no pop_front method in C++ std::vector?
- How do I generate a random number between two variables that I have stored?
- How to print pthread_t
- What is an ‘undeclared identifier’ error and how do I fix it?
- Use of “this” keyword in C++
- Why am I getting “undefined reference to main”
- How to avoid the error: terminate called after throwing an instance of ‘std::logic_error’ what(): basic_string::_S_construct null not valid
- Error while overloading operator (must be a nonstatic member function)
- C++ Fatal Error LNK1120: 1 unresolved externals
- Vector of structs initialization
- C++ deprecated conversion from string constant to ‘char*’
- Converting a vector
to string - std::string formatting like sprintf
- Sorting Characters Of A C++ String
- Sentinel while loop for C++
- “non-standard syntax; use ‘&’ to create a pointer to member” error in Visual Studio 2015
- libpng warning: iCCP: known incorrect sRGB profile
- C++: Expression must have a constant value when declaring array inside function
- What does ‘const static’ mean in C and C++?
- C++ wait for user input
- non-standard syntax; use ‘&’ to create a pointer to member
- How to shuffle a std::vector?
- Error: No instance of constructor matches the argument list
- How can I get the list of files in a directory using C or C++?
- RPN Calculator for C++
- What does `Fatal Python error: PyThreadState_Get: no current thread` mean?
- Debug Assertion Failed: _CrtIsValidHeapPointer(block)
- gdb error not in executable format: File format not recognized
- C++ Erase vector element by value rather than by position?
- C++ Class ‘undeclared identifier”
- Destructor for Binary Search Tree
- What is the most popular general purpose C++ framework?
- C++ – statement cannot resolve address for overloaded function
- What’s the difference between * and & in C?
- is there is a compiler which convert c++ code into mips assembly language
- term does not evaluate to a function taking 1 arguments
- reading from stdin in c++
- Difference between pic Vs pie
- QByteArray to QString
- Bitwise Less than or Equal to
- How to automatically convert strongly typed enum into int?
- Function cannot be referenced as it is a deleted function
- How to get size of dynamic array in C++ [duplicate]
- error C2995: function template has already been defined
- Is there a way to compile C++ to C Code?
- enum to string in modern C++11 / C++14 / C++17 and future C++20
- Digit limitation from decimal point in C++
- error: expected unqualified-id before ‘while’|
- error C2039: ‘string’ : is not a member of ‘std’, header file problem
- cmath vs math.h (And similar c-prefixed vs .h extension headers)