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
Thanks.
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
Thanks.
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.
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.
That worked. Thank you..