coan.exe, version 5.2 for 64 bit Windows(built Sep 7 2013,16:53:55)
Windows 7 64bit
coan.exe source -UPS1 -UPS2 -V --no-transients -xe -kd -r test.h
coan.exe: progress 0x00101: Processing file (1) "test.h"
coan.exe: test.h: line 7: error 0x00803: Orphan #endif
coan.exe: progress 0x02101: Completed with errors, exit code 0x06
test.h:
Adding empty line to the top of the file fixes the issue:
<empty>
Second version of the code is the same, only with added empty line as the 1st line.
I'm not able to reproduce this bug.
It is not quite certain what the content of
test.h
should be. I believe that markdown has messed itup in the bug report and that it should be.
~~~~~~~~~~ test.h file begins
ifndef __MNM_MESH_GRID_H
define __MNM_MESH_GRID_H
pragma once
endif // #ifndef __MNM_MESH_GRID_H
~~~~~~~~~~ file ends
with nothing preceding or following the non-empty lines. When I ran the given commandline on this file the output file was identical to the input, as it should be, and there was no error.
Removing the
-r|--replace
option sends the output file to the console. In that case I get:I am attaching the exact file I tested. Can you post as an attachment the exact file that
is giving you is giving this error?
I see the problem now, it is a unicode leading character at the beginning of the file. When you move the ifdef to a different line, it is fine.
Apparent bug due to a BOM at start of file.