Hey, I’m just starting to learn C++ and I’m using a Dummies Guide book. It says that I need to make a header file and use #include “header.h” for the linking. So I created a new source file called header.h, but when I compile it I get an error saying that there’s a Linker error and that there’s an undefined reference to all the variables that are set in the header file. Is this because I’m not making the header file correctly? Help is appreciated.
Whoops. Thanks but I still get the same error message. Why?