I'm getting this error when i compile my dll project. I've included hlalib.lib in my makefile, so i'm not sure what i've missed. Any help would be appreciated.

Creating library testdll.lib and object testdll.exp
hlalib.lib(raise.obj) : error LNK2001: unresolved external symbol HWexcept__hla_
testdll.dll : fatal error LNK1120: 1 unresolved externals

My makefile:

testdll.dll: testdll.obj
link /map testdll.obj @testdll.link c:\hla\hlalib\hlalib.lib c:\hla\hlalib\user32.lib c:\hla\hlalib\kernel32.lib

testdll.obj: testdll.hla
hla -@ -c testdll.hla

Posted on 2004-11-09 19:24:10 by vrossi
This probalby means you are using the hla stdlib inside a unit.
Try adding these lines to your program:

procedure HWexcept; @external( "HWexcept__hla_" );
procedure HWexcept;
begin HWexcept;
end HWexcept;

This will satisfy the missing HWexcept__hla_ external symbol, although exceptions will not operate properly, you'll have to write in the rest of the procedure if you want exception handling.
Posted on 2004-11-09 21:21:09 by Kain
That worked. Thank you..
Posted on 2004-11-10 03:46:48 by vrossi