I am beginner in C++ and am using Code::blocks. I have surfed the web and wanted to test a simple code. The code consists of a main.cpp, PrintTest.cpp, and PrintTest.h. When I use the function within main file (main.cpp), there is no problem. But, the following error pops out when the function is in a separate file. Any help will be appreciated.
Error:
undefined reference to 'PrintTest(int, int)'