Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.01.22;
Скачать: CL | DM;

Вниз

KOL+FPC 2.0 return 39 errors in converted kol.pas   Найти похожие ветки 

 
azsd ©   (2005-06-02 09:01) [0]

Hi
I used KOL 2.08 with D6 longtimes,and now I want to try new FPC 2.0,then I compile a simple library by fpc ide whitch works fine in delphi6,it taking some compiler message as:

KOL.pas(20336,20) Error: Variable identifier expected
KOL.pas(23121,36) Error: Incompatible types: got "Pointer" expected "<procedure variable type of function(TThread):LongInt of object;Register>"
KOL.pas(23133,36) Error: Incompatible types: got "Pointer" expected "<procedure variable type of function(TThread):LongInt of object;Register>"
KOL.pas(32365,17) Error: Identifier not found "PNMDateTimeString"
KOL.pas(32365,34) Error: Error in type definition
......
KOL.pas(63498) Fatal: There were 39 errors compiling module, stopping
KOL.pas(14,29) Error: Compilation aborted

"[x]Delphi Complitilaty","[*]Intel style Asmember" checked,Unit Directionary setted to F:\KolCore\Glue
Condition define:PAS_VERSION;F_P
kol.pas generated by
GlueCut.exe /I:F:\kolCore\KOL.pas /O:F:\kolCore\Glue /C:FPC.cmd

Is there something I missed or KOL Version must be lower?


 
azsd ©   (2005-06-02 10:10) [1]

I get the 1.89 version KOL.pas converted,and modified the (str+#13#10)[1] to buf[1](atfer buf:=str+#13#10),and adjust postion of Mem2File,then Commented "@" in NewThreadEx/NewThreadAutoFree,
the pascal error cleaned,but more asm error popup up:

kol.pas(17154,18) Error: Asm: 16 Bit references not supported
kol.pas(17154,18) Error: Asm: Invalid effective address
kol.pas(17181,26) Error: Asm: 16 Bit references not supported
kol.pas(17181,26) Error: Asm: Invalid effective address
kol.pas(17205,26) Error: Asm: 16 Bit references not supported
kol.pas(17205,26) Error: Asm: Invalid effective address


 
Андрей ©   (2005-06-02 11:13) [2]

http://members.chello.nl/t.koning8/fpc_in_kol_proper.htm

Tried this?
As I see, no GlueCut is required.

All thnx to Thaddy de Koning


 
azsd ©   (2005-06-02 11:25) [3]

function StrScan(Str: PChar; Chr: Char): PChar; assembler;
asm
 {$IFDEF F_P}
 MOV   EAX, [Str]
 MOVZX EDX, [Chr]

I change it to
MOVZX EDX, Chr
I can"t determin the right effects may
MOV EDX, [Chr]
or
MOVZX EDX,BYTE PTR Chr
chr is 8bit,but I think the [chr] =Integer(@chr) sould be 32bit DWORD here

now I get no compiler error,but linker won"t work for dpr dll projects,only project1.o but not project1.dll generated.


 
azsd ©   (2005-06-02 11:28) [4]

thx Андрей,
I will fllow that guilds later in night.


 
azsd ©   (2005-06-02 12:27) [5]

get the package and config from that web.
the null exe/dll file generated.
release version 410k,debug version 860k.

and Exports sections in dpr been discard in library projects.


 
azsd ©   (2005-06-02 12:42) [6]

mmm,I have forgot to clean KOLCore directionary.
after cleaned o files compile without ppdelphi,
new exe file is 46k now.

-FDF:\FPC\2.0.0/bin/$FPCTARGET in fpc.cfg can"t be removed or resource link would not work while linking.

thx Андрей,and Thaddy de Koning


 
Thaddy   (2005-06-03 01:33) [7]

Glad it all worked.
If somebody has problems, please let me know!


 
Thaddy   (2005-06-03 01:54) [8]

And all thanks to Vladimir Kladov for KOL and thanks to the FPC team!


 
Lars   (2005-06-07 16:14) [9]

Yes I went through a number of similar problems.. but like Thaddy found, I also saw that only minor patches were required, no gluecut really!



Страницы: 1 вся ветка

Текущий архив: 2006.01.22;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.029 c
1-1134675805
Volf_555
2005-12-15 22:43
2006.01.22
Как корректно выделить все функции и процедуры из *.pas файла?


3-1132777245
Serg1981
2005-11-23 23:20
2006.01.22
Подключение к SQL Server


4-1131719853
clickmaker
2005-11-11 17:37
2006.01.22
Отключение сообщение об установке неподписанного драйвера


5-1122036485
DimaBr
2005-07-22 16:48
2006.01.22
Handle компонента


14-1135663849
race1
2005-12-27 09:10
2006.01.22
Word, полоса прокрутки