3.1b Win compilation errors

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.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

Hugella
Posts: 73
Joined: Mon Jun 28, 2004 4:45 pm
Location: Minneapolis, Minnesota

3.1b Win compilation errors

Post by Hugella »

When attempting to compile 'sample.hug' in a directory that is not the same as my main Hugo folder (and with @lib=c:\my lib files path), I get:

Unable to compile using '"C:\Program Files\Hugo\hc.exe" @list=. -ls @lib=c:\program files\hugo\lib "C:\Documents and Settings\Cena\Desktop\HugoProjects\sample.hug"' - Exit code = 2 (1)

Using the command line from my Hugo dir (which also contains the library files), I get:

C:\Program Files\Hugo> hc @source=c:\documents and settings\desktop\cena\hugoprojects\sample.hug

Fatal error: Unable to open and.hug

cauldron
Posts: 6
Joined: Thu Jul 15, 2004 5:13 am

Post by cauldron »

Hello,
When compiling I have a warning:
hugolib.h:832: routine setobjword: Warning: Statement will never be reached

I have the same result with shell.hug.

Did I use an old library?

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Re: 3.1b Win compilation errors

Post by Kent »

Hugella wrote:When attempting to compile 'sample.hug' in a directory that is not the same as my main Hugo folder (and with @lib=c:\my lib files path), I get:

Unable to compile using '"C:\Program Files\Hugo\hc.exe" @list=. -ls @lib=c:\program files\hugo\lib "C:\Documents and Settings\Cena\Desktop\HugoProjects\sample.hug"' - Exit code = 2 (1)

Using the command line from my Hugo dir (which also contains the library files), I get:

C:\Program Files\Hugo> hc @source=c:\documents and settings\desktop\cena\hugoprojects\sample.hug

Fatal error: Unable to open and.hug
That sounds sort of like a bug I thought had been fixed previously. I'll look into it again as soon as I get a chance.

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Post by Kent »

cauldron wrote:Hello,
When compiling I have a warning:
hugolib.h:832: routine setobjword: Warning: Statement will never be reached

I have the same result with shell.hug.

Did I use an old library?
Is this the 3.1 beta compiler? It's probably catching an error that the earlier compiler didn't. The soon-to-be-released compiler/library combination doesn't give this error.

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Re: 3.1b Win compilation errors

Post by Kent »

Kent wrote:That sounds sort of like a bug I thought had been fixed previously. I'll look into it again as soon as I get a chance.
Actually, if I had read this carefully, I would've suggested trying:

@lib="c:\My Path With Spaces"

with the path contained in double-quotes (for Windows/DOS).

Does that help?

(If so, sorry for the delay in getting a proper answer to you.)

cauldron
Posts: 6
Joined: Thu Jul 15, 2004 5:13 am

Post by cauldron »

Kent wrote:Is this the 3.1 beta compiler? It's probably catching an error that the earlier compiler didn't. The soon-to-be-released compiler/library combination doesn't give this error.
Yes, that's the 3.1beta. But that's not a problem anyway, it's only a warning and the games run well.

BTW, I just say the trailer for FutureBoy, and it sure looks promising! But what is it exactly ? A Hugo game? a flash game? or something totally different?

(And the red-headed girl is HOT! I've always prefered the vilainesses in comics, they are always much sexier than their good counterparts...)

Post Reply