Page 1 of 1
Could anyone help me??
Posted: Sat Mar 08, 2003 1:24 pm
by Tony Vaz
I've been programing stuff for some time now, and know a bit on C, java, html... However I can't get to compile anything with the Hugo compiler.
Supposedly, I write the code in a word processor, like notepad, then save it so it becomes a ".hug" file; right? To do this, I used a neat trick I learnt when programing java: in notepad, when I saved, instead of typing say "game", then clicking on save, I typed: "game.hug", then saved. I did this on the sample game that was available on the coffee company website. I take it there was no need to debug anything in it, but passed it though the debugger anyway just to make sure.
At this point, I take it the debugger did its work, but gave me no notification message. Then I tried to compile the sample, only to tell me it cannot compile.

What am I doing wrong? I have given it many hours of work in vain... Can anyone help??
Posted: Sat Mar 08, 2003 2:14 pm
by Roody_Yogurt
Um, well, when you open the compiler, click on 'cancel' to close the initial compiling window, then click on 'options' and go to setup...
Then make sure that the program is looking for your libraries and things in the right places and fix it if it's wrong.
That's the most likely error, although I'd also consider using a better editor (instead of notepad) like PFE or EditPlus or something.
Posted: Sat Mar 08, 2003 5:25 pm
by looper
You could also have inadvertently saved your file as game.hug.txt
Re: Could anyone help me??
Posted: Mon Mar 10, 2003 1:36 am
by Ice Cream Jonsey
Tony Vaz wrote:To do this, I used a neat trick I learnt when programing java: in notepad, when I saved, instead of typing say "game", then clicking on save, I typed: "game.hug", then saved. I did this on the sample game that was available on the coffee company website. I take it there was no need to debug anything in it, but passed it though the debugger anyway just to make sure.
At this point, I take it the debugger did its work, but gave me no notification message. Then I tried to compile the sample, only to tell me it cannot compile.
You're running the compiler on the sample.hug file and not the debug file, right?
You'd also want to make sure that you have the Hugo Library in the same directory you have Sample.hug in. I can't remember off the top of my head if Sample requires the library, but it won't hurt to have it there.
(Also, if you get a successful compile, by default it won't say anything. )
If all of this maps what you're doing, try noting what the first compile error is, and typing it here in this thread. You can also send me the file you're trying to compile at
beaver@zombieworld.com, and I'll take a look at it for you and see if I can figure out what the deal is. We'll get you goin' on this, m'man!
Posted: Mon Mar 10, 2003 3:25 am
by Tony Vaz
Thanx u all 4 such a quick reply!!

I'm gonna try all of ur suggestions & if I still can't get this right, I'll mail u, Ice Cream.
Thanx again.
Posted: Tue Mar 11, 2003 3:11 am
by Tony Vaz
I DID IT!!! I COMPILED!!! Ok, get a grip on urself... The answer was real simple: to put the sample with the rest of the library files, and get Hugo to know where to find these.
Thanx again 4 helping me out on this.