Re: Can't compile DOS program with long file name
- Posted by Robert Craig <rds at RapidEuphoria.com> Apr 01, 2006
- 559 views
Juergen Luethje wrote: > I have the following test program: > }}} <eucode> > puts(1, "Hello!\n\nPress Enter ...") > if getc(0) then end if > </eucode> {{{ > and the name of the program file is "small_test_program.ex". > > The program works when interpreted with ex.exe 2.5, but the problem > is that I can't make a DOS .exe program out of it. > Translating with ec.exe 2.5 seems to work fine, but when I run > "emake.bat" I get compiler errors, and no .exe file is produced. > This happens when I try to compile with DJGPP 2.03, and also with > Open Watcom 1.3. I'm using Windows 98. > When I rename the program file to a short name such as "test.ex" > translating/compiling works fine, so I think the long file name causes > the problem. The problem also arises when a program includes a file > with a long name. > > Is it possible for the Euphoria 3.0 DOS translator to solve this > problem? I would appreciate that very much! The ec.exe translator is a Euphoria program, translated (by itself!) and compiled with Watcom for DOS. As such, it can open existing files that have long names, but it can't create new files with long names. This problem has been noted before. What I could do is either: 1. start using your DOS long file name routines or 2. have one translator for both DOS and Windows, i.e. extend ecw.exe to handle DOS translations as well I'd prefer #2, since it would eliminate an executable that I have to build, and it's probably quite easy to do. I'll look into it. Thanks, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com