[fpc-devel] Porting from Delphi to FPC - challenge #2.

Ozz Nixon ozznixon at gmail.com
Mon Oct 1 14:25:51 CEST 2018


If I type Cast TmpBugStr as PChar, then the error gets weird:

Error: Incompatible types: got "SYSTEM.PChar" expected "SYSTEM.PChar"

On Mon, Oct 1, 2018 at 8:20 AM Ozz Nixon <ozznixon at gmail.com> wrote:

> See Below - pressed enter too fast:
>
>
> On Mon, Oct 1, 2018 at 8:18 AM Ozz Nixon <ozznixon at gmail.com> wrote:
>
>> Type
>>    Line:Array[0..127] of Char;
>>
>> Var
>>    TmpBugStr:Line;
>>
>> {later in the code}
>> Const
>>    TempString : PChar = TmpBugStr;
>>
>>
> Error: Incompatible types: got "Line" expected "PChar
>
> Pointing to the last line. It happens through out the project, I am
> compiling -Mdelphi
>
> Ozz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20181001/c7f5b035/attachment.html>


More information about the fpc-devel mailing list