Re: Can't compile DOS program with long file name
- Posted by Juergen Luethje <j.lue at gmx.de> Apr 01, 2006
- 548 views
Robert Craig wrote: > 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!) This is really cool. > 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. Yes, it has. However, I personally was not aware of the fact that this implies the impossibility to translate program files with long names. > 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 Or would it help to compile ec.ex wirh DJGPP instead of Watcom? > I'd prefer #2, since it would eliminate an executable that I have > to build, and it's probably quite easy to do. If that means that you'll save some time, then it's probably a good idea anyway. > I'll look into it. Thanks! > Thanks, > Rob Craig > Rapid Deployment Software > <http://www.RapidEuphoria.com> Regards, Juergen