Menu

#36 Weird error message when last line contains #define

v5_Beta
open
Compiler (14)
5
2005-01-21
2005-01-21
biolizard89
No

When the last line of a file contains a #define, the
compiler gives the following errors: "??? cannot be
read" and "there was an error in file ??? but the file
cannot be read in order to show the error". Adding a
blank line at the end fixes the problem.

This is a problem because my Botball team has several
files that consist of nothing but #defines, which are
#used in the main program. While there is an easy
workaround, it's not at all obvious what the workaround
is, so it's bound to confuse people.

Discussion


Log in to post a comment.