Following the example here: http://www.learncpp.com/cpp-tutorial/19-header-files/
Relating to add.h
and main.cpp
When I try to compile main.cc (I just used another extension), I get the following:
/tmp/cckpbRW.o:main.cc:(.text+0x9d):undefined reference to 'add(int, int)' collect2: ld returned 1 exit status
How can I fix this issue?
Thanks.