[ragel-users] Strange behavior with included files on Windows/MinGW
Adrian Thurston
thurston at complang.org
Sat Mar 14 01:07:23 UTC 2009
Okay, thanks for the report.
Jose Quinteiro wrote:
> Hello,
>
> Including files does not seem to work properly on Ragel compiled for
> Windows using mingw.
>
> Everything works fine with both files in the same directory:
>
> C:\Documents and Settings\jose>w:\ragel-6.3\ragel\ragel.exe atoi-actions.rl
>
> Move one of the files into a subdirectory:
>
> C:\Documents and Settings\jose>move atoi-machine.rl subdir
>
> Ragel complains correctly if we forget to add the subdirectory to the
> search path:
>
> C:\Documents and Settings\jose>w:\ragel-6.3\ragel\ragel.exe atoi-actions.rl
> atoi-actions.rl:20:27: include: failed to locate file
> atoi-actions.rl:20:27: include: attempted: "atoi-machine.rl"
>
>
> However, if we do add the directory to the search path, ragel finds the
> file but fails to import anything from it!
>
> C:\Documents and Settings\jose>w:\ragel-6.3\ragel\ragel.exe -Isubdir
> atoi-actions.rl
> atoi-actions.rl:22:2: write statement given but there are no machine
> instantiations
>
>
> I suspect this is an MinGW bug as it's not reproducible on Mac OS X. I
> figured people might want to know anyway, since MinGW is listed on the
> home page as an option.
>
> Saludos,
> Jose.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list