Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 16th, 2006, 3:10 AM   #1
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
Question I'm stucked again..

How can i compile some HLA to executable using RadAsm?
I make a project, choose HLA, as console app.
*next*
File creation:
- hla
Folder creation:
- bak
*next*
Make menu:
- Build
- Build all
- Run
- Check syntax

Compile RC:
- 4,O,nmake compilerc,
Assemble:
- 5,O,nmake buildall,
Link:
- 3,O,nmake build,
Run:
- 0,0,,5
Run w/debug:
- *nothing*
Res To Obj:
- 0,O,nmake syntax,
Asm module:
- *nothing*
*finish*
Make som code, and press "Go!"
...and there is coming a popup...
RadASM version 2.0.3.8
Error during process creation
nmake buildall

and the code:
program helloWorld;
#include("stdlib.hhf")
begin helloWorld;

  stdout.put( "Hello World" nl );

end helloWorld;

... and I have HLA installed.
The HLA is installed in
C:\Documents and Settings\Administrator\Dokumenter\Assembly\HLA
have it to be
C:\HLA
?

**
What am I doing wrong?!
v0id is offline   Reply With Quote
Old May 16th, 2006, 10:31 AM   #2
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 Narue is on a distinguished road
It looks like HLA isn't properly installed. Or rather, MASM isn't properly installed since it looks like you're using the version of HLA that uses MASM as a back-end. I've found MASM/HLA and RadAsm to be a pain in the ass. Have you tried HIDE? The installation is as easy as unzipping the archive and it's completely self-contained:

http://home.comcast.net/~kyzra/hlafiles/HIDE12.zip

As for what you're doing wrong now, do you have nmake installed?
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote
Old May 17th, 2006, 6:17 AM   #3
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
No, i actually not have it installed. I thought it was a command to the HLA.
It was the HLA i didn't had installed, so I installed it in the C:\, now it works - almost.
When i try to compile
C:\hla> hla test
then i get a error,
Error in file "test.hla" at line 3 [errid:3395/hla.flx]:
Could not open include file "stdlib.hff".
Near: << ) >>
I did check the include-library C:\hla\include, and the file is there, but why can't it be opened?
C:\hla\include>dir
 Disken i drev C er Lokal disk
 Diskens serienummer er [[????]]-[[????]]

 Indhold af C:\hla\include

16-05-2006  18:10       <DIR>          .
16-05-2006  18:10       <DIR>          ..
04-07-2002  18:12                  529 args.hhf
04-07-2002  18:13               65.069 arrays.hhf
04-07-2002  18:13                1.548 bits.hhf
04-07-2002  18:18                1.309 chars.hhf
10-06-2003  18:19                2.254 console.hhf
10-06-2003  18:19                9.322 conv.hhf
04-07-2002  18:15                  560 coroutines.hhf
10-06-2003  18:19                2.437 cset.hhf
10-06-2003  18:19               18.646 datetime.hhf
05-08-2000  19:58                1.221 dtClass.hhf
08-10-2005  19:58                  283 env.hhf
10-06-2003  18:20                6.019 excepts.hhf
03-05-2003  17:33               16.617 fileclass.hhf
10-06-2003  22:11               26.067 fileio.hhf
04-07-2002  18:48                1.461 getversion.hhf
10-06-2003  19:20                3.853 hla.hhf
10-06-2003  19:20               10.539 hll.hhf
10-06-2003  18:44              148.153 linux.hhf
04-07-2002  20:53                7.269 lists.hhf
10-06-2003  18:37               16.936 math.hhf
04-07-2002  18:55                1.304 memory.hhf
04-07-2002  18:56                  146 misctypes.hhf
08-10-2005  20:00                1.153 mmap.hhf
16-05-2006  18:10       <DIR>          os
04-07-2002  20:31                  373 os.hhf
08-10-2005  20:00                  438 oslinux.hhf
08-10-2005  20:00                  373 oswin.hhf
10-06-2003  18:38               26.275 patterns.hhf
29-03-2003  07:27                  511 RADbg.hhf
10-06-2003  18:39                  616 rand.hhf
08-03-2006  19:01                8.806 stderr.hhf
10-06-2003  18:39                8.418 stdin.hhf
10-06-2003  18:39                  796 stdio.hhf
10-06-2003  18:40                  901 stdlib.hhf
10-06-2003  18:40               14.160 stdout.hhf
10-06-2003  18:40               23.191 strings.hhf
04-07-2002  19:11                  789 tables.hhf
04-07-2002  19:12                  966 timer.hhf
18-03-2006  10:42                  688 vssver.scc
17-07-2003  00:58              673.940 w.hhf
08-10-2005  19:59                  897 winmain.hhf
08-10-2005  19:59               23.372 wpa.hhf
04-07-2002  19:12                  275 x86.hhf
              42 fil(er)        1.128.480 byte
               3 mappe(r)     574.402.560 byte ledig

Hmm, but i'll try the "HIDE"
__________________
-- v0id
v0id is offline   Reply With Quote
Old May 17th, 2006, 6:59 AM   #4
lostcauz
Hobbyist Programmer
 
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 5 lostcauz is on a distinguished road
Right-click My Computer
Select the Advanced tab
Click on Environment Variables
Select Path from the System Variables listbox
Click on Edit
Add "C:\hla;C:\hla\include" to your Path variable
__________________
-- lostcauz

Stepped in what?...
Behind whose barn?...
I didn't even know they had a cow!
lostcauz is offline   Reply With Quote
Old May 17th, 2006, 7:21 AM   #5
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
I had prove that - almost.
My path did stand on "C:\hla", and not "C:\hla;C:\hla\include".
But i tried to change to "C:\hla;C:\hla\include", but it didn't help.

C:\hla>hla -v test
HLA (High Level Assembler)
Released to the public domain by Randall Hyde.
Version Version 1.54 build 8195 (prototype)
Win32 COFF output
Using MASM assembler
MASM output

Files:
1: test.hla

Compiling 'test.hla' to 'test.asm'
using command line [hlaparse  -v -sm "test.hla"]
HLA (High Level Assembler) Parser
Released to the public domain by Randall Hyde.
Version Version 1.54 build 8194 (prototype)
File: test.hla
Output Path: ""

Compiling "test.hla" to "test.asm"
Error in file "test.hla" at line 3 [errid:3395/hla.flx]:
Could not open include file "stdlib.hff".
Near: << ) >>
program helloWorld;

#include("stdlib.hhf"); // <<< Line 3.

begin helloWorld;
	
	stdout.put( "Hello world!", nl );

end helloWorld;
__________________
-- v0id
v0id is offline   Reply With Quote
Old May 17th, 2006, 7:50 AM   #6
lostcauz
Hobbyist Programmer
 
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 5 lostcauz is on a distinguished road
I don't know about the test program. I don't use hla normally. Using hla version 1.79 Build 10130, the helloworld program you show compiles and executes fine on my machine. Save it as helloworld.hla

c:\hla> hla helloworld
  Assembling: helloworld.asm
c:\hla>helloworld
  Hello world!
__________________
-- lostcauz

Stepped in what?...
Behind whose barn?...
I didn't even know they had a cow!
lostcauz is offline   Reply With Quote
Old May 17th, 2006, 8:14 AM   #7
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
"Could not open include file "stdlib.hff"."
It just can't open the file.

But, maybe I should try your version (1.76) instead of my current version (1.56)?
Or maybe the newest one, 1.81?

I'll try with the newest..
__________________
-- v0id
v0id is offline   Reply With Quote
Old May 17th, 2006, 8:17 AM   #8
lostcauz
Hobbyist Programmer
 
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 5 lostcauz is on a distinguished road
Yeah, that's a good idea. Also if you didn't restart your DOS session the path variable wouldn't have taken effect.
__________________
-- lostcauz

Stepped in what?...
Behind whose barn?...
I didn't even know they had a cow!
lostcauz is offline   Reply With Quote
Old May 17th, 2006, 8:32 AM   #9
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
Restart?
You mean just close and then open DOS again, right?
If yes, then, yes, i did that
__________________
-- v0id
v0id is offline   Reply With Quote
Old May 17th, 2006, 8:44 AM   #10
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
Argh! God damn, i'm unlucky.
I tried to install the new, from Webster's homepage, but when i tried to compile, there came an error where there did stand that 'ml' was missing, so i did install the old package that i had saved.
But now, there is also stands that 'ml' is missing.
ML = ML.exe, right?
Where can i get ml.exe.

(I use Windows 2000)
__________________
-- v0id
v0id is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:12 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC