[fpc-pascal] [libtar.pas]:Error: Illegal type conversion: "ShortString" to "^Char" without compilator options
TOUZEAU DAVID
david.touzeau at fr.kaspersky.com
Fri Oct 6 12:56:38 CEST 2006
Many thanks Vincent
the {$mode delphi} is a good way...
Vincent Snijders a écrit :
> TOUZEAU DAVID schreef:
>> Dear
>>
>> I would like to use some units developped from delphi/klyx with
>> Lazarus IDE On Linux.
>>
>> It seems that there is some differences between delphi/freepascal
>> especially for longstring conversion.
>>
>> Many times, i received this compilator error :
>>
>> For example by using the LibTar.pas
>> (http://www.destructor.de/libtar/index.htm)
>>
>> libtar.pas(355,8) Error: Illegal type conversion: "ShortString" to
>> "^Char"
>>
>> i fixed this error with {$H+}{$LongString On} tokens
>>
>> But is it this good way ??? is there an another solution ??
>
> An alternative is to add {$mode delphi} to the source file or compile
> with -Sd compiler option.
>
> Vincent
>
--
David Touzeau -------------------------- Linux Ubuntu Dapper 6.0.6
FreePascal-Lazarus,perl,delphi,php icq:160018849
More information about the fpc-pascal
mailing list