For a quick start I did the following:
for file in /data/subversion/svn/jcl/source/common/*.pas /data/subversion/svn/jcl/source/unix/*.pas ; do fpc -FE. -Fu/data/subversion/svn/jcl/source/common/
-Fi/data/subversion/svn/jcl/source/ $file 2>&1 ; done | grep -i Error | sort | uniq
This tries to compile all the common+unix stuff. I end up with the following Messages:
JclLogic.pas(1130,19) Error: Asm: [bts mem32,mem32] invalid combination of opcode and operands
JclLogic.pas(1193,19) Error: Asm: [bt mem32,mem32] invalid combination of opcode and operands
JclLogic.pas(1295,19) Error: Asm: [btc mem32,mem32] invalid combination of opcode and operands
JclLogic.pas(1971) Fatal: There were 4 errors compiling module, stopping JclLogic.pas(628,19) Error: Asm: [btr mem32,mem32] invalid combination of opcode and operands
JclPCRE.pas(151,16) Error: Incompatible types: got "<procedure variable type of function:^Char;CDecl>" expected "PChar"
JclPCRE.pas(244,31) Error: Incompatible types: got "untyped" expected "<procedure variable type of procedure;CDecl>"
JclPCRE.pas(280) Fatal: There were 2 errors compiling module, stopping
JclSchedule.pas(1315,52) Fatal: Syntax error, ";" expected but
"identifier IMPLEMENTS" found
JclUnitVersioning.pas(235,3) Note: Local variable "Error" is assigned but never used
JclUnitVersioning.pas(480,8) Error: Identifier not found "GetModuleFileName" JclUnitVersioning.pas(839) Fatal: There were 1 errors compiling module, stopping
JclWideStrings.pas(2029) Fatal: There were 1 errors compiling module, stopping
JclWideStrings.pas(950,13) Error: Identifier not found "CompareString"
Some of those are easy to fix, the assembler errors in JclLogic.pas give me the creeps because my last lines of assembler code were written 15 years ago....
Michael
Show quoted text 15 lines
> I am currently doing the switch from Kylix to FreePascal.
>
> Current versions of jcl do not compile very well with FreePascal on
> Linux because defines are missing.
>
Could you be more specific? Sometimes there is a gap in support for Kylix
apps because we want to avoid too many kylixisms/linuxisms in the default
settings. (due to non-x86 linux/BSD/Mac OS X)
_______________________________________________
fpc-pascal maillist -
http://lists.freepascal.org/mailman/listinfo/fpc-pascal