Use
g++ main.cpp Help.cpp
You have to tell the compiler all the files that you want it to compile, not just the first one.
More Related Contents:
- DSO missing from command line [duplicate]
- C++ templates, undefined reference
- usr/bin/ld: cannot find -l
- Undefined Symbol ___gxx_personality_v0 on link
- What are the correct link options to use std::thread in GCC under linux?
- What does the >?= operator mean?
- Getting mangled name from demangled name
- Undefined symbols “vtable for …” and “typeinfo for…”?
- How to force gcc to link an unused static library
- How to properly link libraries with cmake?
- Why do I need to use typedef typename in g++ but not VS?
- g++ “calling” a function without parenthesis (not f() but f; ). Why does it always return 1?
- error: expected class-name before ‘{’ token
- How to use visual studio code to compile multi-cpp file?
- undefined reference to `__stack_chk_fail’
- Update GCC on OSX
- error: use of deleted function
- A class name introduced inside a class is not treated as a nested class name
- g++ How to get warning on ignoring function return value
- SetJmp/LongJmp: Why is this throwing a segfault?
- Is optimisation level -O3 dangerous in g++?
- OpenCV 2.3 Compiling Issue – Undefined Refence – Ubuntu 11.10
- Difference between regex_match and regex_search?
- Why does sqrt() work fine on an int variable if it is not defined for an int?
- Why should I initialize member variables in the order they’re declared in?
- std::this_thread::sleep_for() and GCC
- Spurious warning about binding temporary to reference member in constructor
- Undocumented GCC Extension: VLA in struct
- Is substitution performed on a variadic parameter pack type if the pack is empty?
- How should I use g++’s -finput-charset compiler option correctly in order to compile a non-UTF-8 source file?