This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.
I just started back fiddling around with Hugo. I've got the latest compiler/library; I'm on WinXP.
Seems back in 2002 I had the same problem I'm having now: getting Hugo to compile through the GUI frontend. (No problems from the command line, so far.) The error is 'unable to compile Exit code = -1 (1). Yes, my path name has spaces in it as suggested by Kent's response in raif below (this dates from last year, btw)
Is your path by chance not "c:\hugo3" but instead something with a space in
it, like "c:\Program Files\Hugo"? If that's the case, this may be due to a
bug in the compiler-launching functionality of the Windows front-end, which
I'll need to address.
That's weird. It should work. I just tested it running from a folder called "Test Folder", with the space, and it worked.
Possibilities: Are you sure you have the v3.0.06 Windows front-end hcwin.exe? Is it possible you copied over the Windows compiler hc.exe with a DOS version? (That'll prevent hcwin.exe from being able to call the compiler as a subprocess.) Also, I may've somehow screwed up what I put in the archive for the released version. I'll have to test that when I get a chance; alternately, I can send you my hcwin.exe.
Well, I just did a fresh install, just in case, and installed it to the Program Files directory. Still getting the same error. (using the hugo3win32 compiler/library dated 27 July 03 from plover.net.)
Actually, what seems to be happening in the install to c:\hugo (as opposed to the c:\program files\hugo install) is that it generates the above error whenever the .hug file is not located in the Hugo root directory. (in other words, i can't 'browse' to, say, 'c:/some directory/games/game.hug')
If game.hug isn't in c:/hugo, I get the error.
Hopefully this is the last comment I make on this subject, and I will have learned my lesson about doing all this testing before posting! :)
Okay. If the compiler is located in c:\program files\hugo, it does work. The error is actually being generated when you try to compile a .hug file that's located in a directory with spaces.
Hugella wrote:Okay. If the compiler is located in c:\program files\hugo, it does work. The error is actually being generated when you try to compile a .hug file that's located in a directory with spaces.
I have nothing to add on-topic, but I did just want to chime in now that I have started programming every day or night (usually not both, I mean, hey, I'm not going to lie to my treasured denizens) and give Kent my quarterly can of HUGO PROPS. I have been toiling around in someone else's C++ code at work as of late and coming home to write Hugo is the kind of relief I normally get only by use of pins and needles from the Asian Full Body Happy Ending Massage Parlor down by the National Honey Board in Longmont, Colorado.