[ragel-users] Strange behavior with included files on Windows/MinGW

Jose Quinteiro jose at ordinate.com
Wed Mar 11 21:09:24 UTC 2009


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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: atoi-actions.rl
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20090311/d30ad599/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: atoi-machine.rl
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20090311/d30ad599/attachment-0003.ksh>


More information about the ragel-users mailing list