Sorry for what is probably an asinine question. I'm relatively inexperienced in C++ and I'm writing a small program with a header file. My cpp and h filenames have a period in them, for example: "file_ver_1.1.cpp" and "file_ver_1.1.h"
In my header file I have the following code
#ifndef FILE_VER_1.1_H_
#define FILE_VER_1.1_H_
... some code
#endif
I get a warning from the compiler saying "extra tokens at end of #ifndef directive" for the first line and "missing whitespace after the macro name" for the define line. Is my header file name invalid because of the underscores and/or periods? I've read these two articles but I didn't really understand them and I'm still confused:
http://gcc.gnu.org/onlinedocs/cpp/Macros.html#Macros
http://stackoverflow.com/questions/1653958/why-are-ifndef-and-define-used-in-c-header-files
Thank you for your help!