954,487 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

#ifndef warnings

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.

Thanks!

MIGSoft
Posting Pro in Training
473 posts since Jul 2005
Reputation Points: 10
Solved Threads: 2
 

Nevermind...I figured it out.

MIGSoft
Posting Pro in Training
473 posts since Jul 2005
Reputation Points: 10
Solved Threads: 2
 

but how

cebusta
Newbie Poster
1 post since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

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

Leon_Alone
Newbie Poster
1 post since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You