Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "KOL";
Текущий архив: 2006.01.22;
Скачать: [xml.tar.bz2];

Вниз

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 вся ветка

Форум: "KOL";
Текущий архив: 2006.01.22;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.036 c
1-1134852272
Steplerr
2005-12-17 23:44
2006.01.22
Как использовать "голубой" стиль Win XP


3-1132759401
AlexLines
2005-11-23 18:23
2006.01.22
RichView и win ME (98). Оператор Select и Pentium 3


14-1135635473
GanibalLector
2005-12-27 01:17
2006.01.22
RS232-клава и удаленное подключение


4-1131650096
Consigliere
2005-11-10 22:14
2006.01.22
Уважаемые господа подскажите как отключить порты.


8-1122221174
rolex
2005-07-24 20:06
2006.01.22
Как подать на колонки звук определенной частоты???





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский