We will have duplicate symbol for architecture x86_64
when we compile the programs as follows:
$ g++ -c -Wall bye.cpp # Generate bye.o
$ g++ -c -Wall hello.cpp # Generate hello.o
$ g++ -Wall main.cpp bye.o hello.o -o run
duplicate symbol __Z3LOGNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE in:
bye.o