Christoph <[email protected]> wrote on 01/06/2011 01:24:01 
PM:

> Hi,
> 
> I get a strange compiler error when trying to build my sources:
> 
> 
/home/christoph/BA/race/RaceDRuntime/src/x10/runtime/race/Analyzer.x10:202:
> Syntax error: Unexpected character ignored: ""
> 1 error.
> 
> Analyzer.x10 has exactly 202 lines. If I add some content, the error 
occurs
> every time in the last line, but there is just a whitespace. Even 
removing
> this whitespace has no effect to this error.
> 
> Hope anybody can give me an advice, how I can fix this error.

Hi, Christoph,

Some Windows editors (wordpad, for example) would add a NUL or EOF 
character
at the end of the file, and the lexer complains.  You can see what that
character is by redirecting the stdout/stderr of the compiler to a file 
and
editing that file in some editor that shows non-printable character.  You
can also use "od -c" to dump the contents of the source file and see what
the last character is.

The above can also happen if you have a non-ASCII character in your file
(most common are the Unicode whitespace characters).

Hope this helps,
        Igor
P.S. Given your generic email address, it would be helpful to know your
affiliation and why you are interested in X10.
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
X10: Parallel Productivity and Performance (http://x10-lang.org/)
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
"I hear and I forget.  I see and I remember.  I do and I understand" -- 
Xun Zi


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to