On 5/10/2019 4:42 PM, Kevin Lyda wrote:
When I compile and run this small test program (
https://gist.github.com/lyda/2d33a6d91067e9dffb4ed37147b52583 ) the
following happens:
% fpc test.pas
Free Pascal Compiler version 3.0.4+dfsg-22~bpo9+2 [2019/02/22] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pas
Linking test
/usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T?
7 lines compiled, 0.1 sec
% ./test
Runtime error 106 at $000000000042968D
$000000000042968D
$000000000040018C
If I remove the uses clause it runs fine. Why is the keyboard unit,
which isn't even being used, causing this error?
Kevin
Away from any computer with FreePascal installed, but could it be that
this is a non-Linux aware unit which does something DOS-specific (as you
select TP mode), which of course doesn't work under Linux...
Ralf
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal