The MASM Forum Archive 2004 to 2012

Project Support Forums => HLA Forum => Topic started by: DarkWolf on March 10, 2007, 02:06:21 AM

Title: Errors when testing my Linux setup
Post by: DarkWolf on March 10, 2007, 02:06:21 AM
Here's the code:

program testLinux;
#include( "stdlib.hhf" )
begin testLinux;
    stdout.put( "Hello, World of Assembly Language", nl );
end testLinux;

Here's the errors:

test.o: In function `_findEnvp_':
(.text+0x66): undefined reference to `BuildExcepts__hla_'
test.o: In function `_findEnvp_':
(.text+0x75): undefined reference to `STDOUT_PUTS'
test.o: In function `_findEnvp_':
(.text+0x7f): undefined reference to `STDOUT_PUTS'
test.o: In function `InstallSignals__hla_':
(.text+0x39): undefined reference to `excepts_install_signals'
test.o: In function `DfltExHndlr__hla_':
(.text+0x3e): undefined reference to `DefaultExceptionHandler__hla_'
Error returned by ld = 256

It's a real simple program but did I do something wrong or could this be related to v1.88
Does stdout.put work differently now ?
Title: Re: Errors when testing my Linux setup
Post by: Evenbit on March 10, 2007, 09:38:59 PM
You should try the new experimental 1.89 version:


http://webster.cs.ucr.edu/hla.zip
http://webster.cs.ucr.edu/hla.tar.gz

Nathan.
Title: Re: Errors when testing my Linux setup
Post by: Randall Hyde on March 14, 2007, 01:47:26 PM
Quote from: DarkWolf on March 10, 2007, 02:06:21 AM
Here's the code:

program testLinux;
#include( "stdlib.hhf" )
begin testLinux;
    stdout.put( "Hello, World of Assembly Language", nl );
end testLinux;

Here's the errors:

test.o: In function `_findEnvp_':
(.text+0x66): undefined reference to `BuildExcepts__hla_'
test.o: In function `_findEnvp_':
(.text+0x75): undefined reference to `STDOUT_PUTS'
test.o: In function `_findEnvp_':
(.text+0x7f): undefined reference to `STDOUT_PUTS'
test.o: In function `InstallSignals__hla_':
(.text+0x39): undefined reference to `excepts_install_signals'
test.o: In function `DfltExHndlr__hla_':
(.text+0x3e): undefined reference to `DefaultExceptionHandler__hla_'
Error returned by ld = 256

It's a real simple program but did I do something wrong or could this be related to v1.88
Does stdout.put work differently now ?

I think that the stdlib under Linux wasn't compiled properly.
Take Nathan's suggestion and try v1.89. It seems to be working pretty good now.
Cheers,
Randy Hyde
Title: Re: Errors when testing my Linux setup
Post by: DarkWolf on March 17, 2007, 03:08:29 AM
Yes that works now, and I still have to remember to prefix './' to my executable names when I want to run them : )

Looking forward to the 1.9/2.0 release.