943,739 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 3639
  • C++ RSS
May 21st, 2007
0

#ifndef warnings

Expand Post »
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!
Similar Threads
Reputation Points: 10
Solved Threads: 1
Posting Pro in Training
MIGSoft is offline Offline
472 posts
since Jul 2005
May 21st, 2007
0

Re: #ifndef warnings

Nevermind...I figured it out.
Reputation Points: 10
Solved Threads: 1
Posting Pro in Training
MIGSoft is offline Offline
472 posts
since Jul 2005
Mar 28th, 2010
0
Re: #ifndef warnings
but how
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cebusta is offline Offline
1 posts
since Mar 2010
Apr 7th, 2011
0
Re: #ifndef warnings
I had same problem. It solved by renaming define name of header file. Example:
#ifndef PLOTTER.H -> #ifndef PLOTTER_H
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Leon_Alone is offline Offline
1 posts
since Apr 2011

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: help me for once please
Next Thread in C++ Forum Timeline: Getting Array Averages





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC