Hey Everybody,
I keep getting these warnings when I compile my program:

19: warning: extra tokens at end of #ifndef directive
19: warning: missing whitespace after the macro name

both apply to the same line number, which has nothing to do with the ifndef statement. I tried looking for an obvious solution, but could not find one. Any hints would be great.


Nevermind...I figured it out.

but how

I had same problem. It solved by renaming define name of header file. Example:
#ifndef PLOTTER.H -> #ifndef PLOTTER_H

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.