News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Errors when testing my Linux setup

Started by DarkWolf, March 10, 2007, 02:06:21 AM

Previous topic - Next topic

DarkWolf

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 ?
--
Where's there's smoke, There are mirrors.
Give me Free as in Freedom not Speech or Beer.
Thank You and Welcome to the Internet.


Randall Hyde

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

DarkWolf

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.
--
Where's there's smoke, There are mirrors.
Give me Free as in Freedom not Speech or Beer.
Thank You and Welcome to the Internet.