[fpc-devel] CThreads.pp

Ewald bloody.middlefinger at yellowcouch.org
Sun Nov 18 14:24:18 CET 2012


Once upon a time, on 11/18/2012 01:23 PM to be precise, Ewald said:
> Once upon a time, on 11/18/2012 11:43 AM to be precise, Jonas Maebe said:
>> On 16 Nov 2012, at 19:42, Ewald wrote:
>>
>>> {$mode ObjFPC}, which is the same as cthreads.pp. Removal of the `@`
>>> doesn't solve the problem. The thing that is weird about this is that
>>> the type I use for `TThreadID` is not self defined, it comes from one of
>>> the units used; which somehow is different from some other type that the
>>> TThreadManager record uses. Is there a way to figure out from where fpc
>>> gets a certain symbol via command line switch or something?
>> No. The easiest way to figure this one out is to open the source code in Lazarus, and use its "Find declaration" functionality (by default: position the cursor over an identifier and press alt/option-up).
> Alright, I'll see what I can find, and I'll post it here when I've fixed it.
>
Right, I fixed this issue by adding a very simple type declaration at
the top of the unit:

    Type

        TThreadID = System.TThreadID;


That I didn't think of this before...

-- 
Ewald

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20121118/bd16f4a9/attachment.html>


More information about the fpc-devel mailing list