Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

KOL+FPC 2.0 return 39 errors in converted kol.pas [KOL]


azsd ©   (2005-06-02 09:01:00) 

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?


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

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!


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

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


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

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


azsd   (2005-06-02 12:42:00) [4]

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


azsd   (2005-06-02 12:27:00) [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 11:28:00) [6]

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


azsd   (2005-06-02 11:25:00) [7]

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.


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

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 10:10:00) [9]

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


Наверх

Титульная страница Поиск, карта сайта Написать письмо