[fpc-pascal] Access to RS232 ports with fpc
Tomas Hajny
XHajT03 at mbox.vol.cz
Tue Nov 3 09:39:51 CET 2009
On Tue, November 3, 2009 02:33, Holger Bruns wrote:
> Brad Campbell schrieb:
>>
>> Why not try attaching your test code that is failing so we can help
>> you get it working?
>
> Done. My fault was the following declaration:
>
> var inbuffer: array of char;
>
> This is a better declaration:
>
> var inbuffer: array[0..10] of char;
>
> Now I got my code working. Hidden pointers are new to me. Therefore I
> felt in trouble with it. Secondly, it appears to be necessary to use the
> fpc compiler as "root", not simply as a user, I guess.
The compiler may be certainly run under other users (well, at least if
installed properly), but access to ports requires root privileges as far
as I know.
Tomas
More information about the fpc-pascal
mailing list