Jump to content
Sign in to follow this  
Guest harry3

C Gauges: Header File error

Recommended Posts

Guest harry3

Hi!I've some strange problems with the .h file!When compiling, the compiler wrote that message:C:ProgrammeMicrosoft Visual StudioMyProjectsgeschwindigkeitgeschwindigkeit.h(24) : fatal error RC1004: unexpected end of file found#define BMP_BG 0x1000#define BMP_NEEDLE 0x1003 <-- the error line, the last line of the file!I already had that error some time ago. I just deleted some blanks which were behind the 0x1003 and it worked. But this time it doesn't work!It's quite a strange problem, because the .h file is written correctly, in my opinion!Regards,Harry :-)

Share this post


Link to post
Share on other sites
Guest harry3

Now I pressed five times ENTER, so that there are 5 new blank lines under the last line of the header file.I din't change anything else.Guess what happened! The gauge compiled!!!:-lolWhy must I play around with ENTER and blank lines? Regards,Harry (...a bit confused now:-hmmm)

Share this post


Link to post
Share on other sites
Guest bartels

But that's how it is, just do end any .h, .rc,.c file at least with one empty line at the bottom. Strange but true. I assume it is only really necessary for .rc's and .h's included from it, but better an extra line at the bottom then worry.Arne Bartels

Share this post


Link to post
Share on other sites
Guest harry3

Thanks for the answer!That's really strange, but if it will work this way...Regards,Harri :-)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...