I\'m new to programming in C++ with header files. This is my current code:
//a.h #ifndef a_H #define a_H namespace hello { class A { int a; public:
You need to compile and then link both source (.cpp) files:
.cpp
g++ -Wall -pedantic -g -o your_exe a.cpp ex2.cpp