Jump to content
Sign in to follow this  
don_erickson

Preprocessor problem?

Recommended Posts

Compiler output:

 

Compiling...

 

C:\PROGRA~1\SOURCE~1\c2c.exe -PPIC16F84 -SRC -ols -md -O2 -Ip16F84.inc -otimer.asm  timer16.c

C2C-plus 5.3e C-compiler  Copyright© 1998-99,2000-2004 by Pavel Baranov

http://www.picant.com/c2c/c.html

support@picant.com

(Extended version)

 

Licensed to: Donald Erickson

 

timer16.c

line 687: EOF in comment

1 errors detected

Preprocessor error

Done

Failed

 

But the editor says there are only 685 lines in the source file;

I had ended the file with a comment, but I get the same error even if I get rid of the comment.

According to the color coding in the source file window, the file does not end in a comment.

Is something wrong with the pre-processor?

Share this post


Link to post
Share on other sites
Guest Pavel

There are no known preprocessor issues. Try to figure where the error is or post code here (if it's not too big).

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Don, I achieved this by accident this evening.  I have a #define twice wich produced this error.  Check all your #defines and make sure you didn't do two the same.

 

Compiling...

 

C:\PROGRA~1\SOURCE~1\C2C.EXE -PSX28AC -SRC -ols -md -O2 -IC:\PROGRA~1\SOURCE~1\INCLUDE\PSX28AC.INC -oHOSEY.asm  HOSEY.C

 

C2C-plus 5.3e C-compiler  Copyright© 1998-99,2000-2004 by Pavel Baranov

http://www.picant.com/c2c/c.html

support@picant.com

(Extended version)

 

Licensed to: Timothy Hosey

 

 

HOSEY.C

line 92: EOF in comment

 

1 errors detected

Preprocessor error

Done

 

Failed

 

This can also happen I discovered later if you use the #include "xxxx.x"; and there is nothing but an empty file.

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...