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
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal