Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-09

Sablopas and FPC

9 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Fernando Lozano

Hi there,

Based on previous posts to the list I dowload Sablopas but could not compile using FPC 1.0.6 on Windows 95:

Any hint?

[]s, Fernando Lozano

fpc "C:\soft\sablopas\units\SablotEngine.pas"
Free Pascal Compiler version 1.0.6 [2002/04/23] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Win32 for i386
Compiling c:\soft\sablopas\units\sablotengine.pas
handlers.inc(30,31) Hint: Parameter ALLFIELDS not used
handlers.inc(24,48) Hint: Parameter PROCESSOR_ not used
handlers.inc(77,29) Hint: Parameter USERDATA not used
handlers.inc(77,46) Hint: Parameter PROCESSOR_ not used
handlers.inc(78,5) Hint: Parameter CODE not used
handlers.inc(78,19) Hint: Parameter LEVEL not used
handlers.inc(78,38) Hint: Parameter FIELDS not used
handlers.inc(83,34) Hint: Parameter USERDATA not used
handlers.inc(83,51) Hint: Parameter PROCESSOR_ not used
handlers.inc(84,13) Hint: Parameter SEVERITY not used
handlers.inc(84,22) Hint: Parameter FACILITY not used
handlers.inc(84,31) Hint: Parameter CODE not used
handlers.inc(115,23) Error: Illegal type conversion
handlers.inc(116,12) Error: Illegal type conversion
handlers.inc(129,15) Error: Illegal type conversion
handlers.inc(130,13) Error: Illegal type conversion
sablotengine.pas(352,25) Error: Incompatible types: got "<procedure variable type of procedure(void_pointer,ulong,LONGINT,LONGINT,LONGINT);ClearStack;Cdecl>" expected "PSMESSAGEHANDLERMAKECODE"
sablotengine.pas(353,20) Error: Incompatible types: got "<procedure variable type of procedure(void_pointer,ulong,ulong,ulong,var TSERRORFIELDS);ClearStack;Cdecl>" expected "PSMESSAGEHANDLERLOG"
sablotengine.pas(354,22) Error: Incompatible types: got "<procedure variable type of procedure(void_pointer,ulong,ulong,ulong,var TSERRORFIELDS);ClearStack;Cdecl>" expected "PSMESSAGEHANDLERERROR"
sablotengine.pas(375,50) Error: Illegal type conversion
sablotengine.pas(375,65) Error: Illegal type conversion
sablotengine.pas(468,34) Error: Illegal type conversion
sablotengine.pas(476,24) Error: Incompatible types: got "<procedure variable type of function(void_pointer,ulong,LONGINT,const PCHAR,var LONGINT):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLERPUT"
sablotengine.pas(477,24) Error: Incompatible types: got "<procedure variable type of function(void_pointer,ulong,LONGINT,var PCHAR,LONGINT):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLERGET"
sablotengine.pas(478,25) Error: Incompatible types: got "<procedure variable type of function(TSABLOTENGINE,ulong,const PCHAR,const PCHAR,var LONGINT):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLEROPEN"
sablotengine.pas(479,26) Error: Incompatible types: got "<procedure variable type of function(void_pointer,ulong,LONGINT):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLERCLOSE"
sablotengine.pas(480,27) Error: Incompatible types: got "<procedure variable type of function(void_pointer,ulong,const PCHAR,const PCHAR,var PCHAR,var LONGINT):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLERGETALL"
sablotengine.pas(481,31) Error: Incompatible types: got "<procedure variable type of function(void_pointer,ulong,var PCHAR):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLERFREEMEMORY"
sablotengine.pas(495,29) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(497,43) Error: Illegal type conversion
sablotengine.pas(497,53) Error: Illegal type conversion
sablotengine.pas(512,29) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(513,43) Error: Illegal type conversion
sablotengine.pas(513,53) Error: Illegal type conversion
sablotengine.pas(527,29) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(529,46) Error: Illegal type conversion
sablotengine.pas(529,56) Error: Illegal type conversion
sablotengine.pas(542,14) Error: Illegal type conversion
sablotengine.pas(544,14) Error: Illegal type conversion
sablotengine.pas(567,28) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(570,44) Error: Illegal type conversion
sablotengine.pas(583,29) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(606,28) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(612,46) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(617,80) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(641,31) Error: Illegal type conversion
sablotengine.pas(649,54) Error: Illegal type conversion
sablotengine.pas(649,70) Error: Illegal type conversion
sablotengine.pas(649,86) Error: Illegal type conversion
sablotengine.pas(688,35) Error: Illegal type conversion
sablotengine.pas(694,41) Error: Illegal type conversion
sablotengine.pas(699,45) Error: Illegal type conversion
sablotengine.pas(705,51) Error: Illegal type conversion
sablotengine.pas(708,66) Error: Duplicate identifier BASE
sablotengine.pas(708,66) Hint: Identifier already defined in sablotengine.pas at line 174
sablotengine.pas(714,28) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(730,29) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(746) Fatal: There were 44 errors compiling module, stopping
Exit code: 1

Reply by email

Peter Vreman
Show quoted text 7 lines
Hi there, Based on previous posts to the list I dowload Sablopas but could not compile using FPC 1.0.6 on Windows 95: Any hint?

Maybe you need to compile it in delphi-mode. Try the -Sd commandline option.

Reply by email

Fernando Lozano

Hi Peter,

Show quoted text 6 lines
> Based on previous posts to the list I dowload Sablopas but could > not compile using FPC 1.0.6 on Windows 95: > > Any hint? Maybe you need to compile it in delphi-mode. Try the -Sd commandline option.

I used ObjFpc mode. It's not the same thing?

[]s, Fernando Lozano

Reply by email

Florian Klaempfl
to Fernando Lozano
you wrote 11 lines
Hi Peter, > > Based on previous posts to the list I dowload Sablopas but could > > not compile using FPC 1.0.6 on Windows 95: > > > > Any hint? > > Maybe you need to compile it in delphi-mode. Try the -Sd commandline option. I used ObjFpc mode. It's not the same thing?

No, with -Sd the compiler tries to be as much as possible compatible with delphi
while ObjFpc turns on the Object Pascal features.

Reply by email

Fernando Lozano

Hi Peter,

> Based on previous posts to the list I dowload Sablopas but could > not compile using FPC 1.0.6 on Windows 95: Maybe you need to compile it in delphi-mode. Try the -Sd commandline option.

Got the same errors. :-(

fpc  -Sd "C:\soft\sablopas\units\SablotEngine.pas"
Free Pascal Compiler version 1.0.6 [2002/04/23] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Win32 for i386
Compiling c:\soft\sablopas\units\sablotengine.pas
handlers.inc(30,31) Hint: Parameter ALLFIELDS not used
handlers.inc(24,48) Hint: Parameter PROCESSOR_ not used
handlers.inc(77,29) Hint: Parameter USERDATA not used
handlers.inc(77,46) Hint: Parameter PROCESSOR_ not used
handlers.inc(78,5) Hint: Parameter CODE not used
handlers.inc(78,19) Hint: Parameter LEVEL not used
handlers.inc(78,38) Hint: Parameter FIELDS not used
handlers.inc(83,34) Hint: Parameter USERDATA not used
handlers.inc(83,51) Hint: Parameter PROCESSOR_ not used
handlers.inc(84,13) Hint: Parameter SEVERITY not used
handlers.inc(84,22) Hint: Parameter FACILITY not used
handlers.inc(84,31) Hint: Parameter CODE not used
handlers.inc(115,23) Error: Illegal type conversion
handlers.inc(116,12) Error: Illegal type conversion
handlers.inc(129,15) Error: Illegal type conversion
handlers.inc(130,13) Error: Illegal type conversion
sablotengine.pas(352,25) Error: Incompatible types: got "<procedure variable type of procedure(void_pointer,ulong,LONGINT,LONGINT,LONGINT);ClearStack;Cdecl>" expected "PSMESSAGEHANDLERMAKECODE"
sablotengine.pas(353,20) Error: Incompatible types: got "<procedure variable type of procedure(void_pointer,ulong,ulong,ulong,var TSERRORFIELDS);ClearStack;Cdecl>" expected "PSMESSAGEHANDLERLOG"
sablotengine.pas(354,22) Error: Incompatible types: got "<procedure variable type of procedure(void_pointer,ulong,ulong,ulong,var TSERRORFIELDS);ClearStack;Cdecl>" expected "PSMESSAGEHANDLERERROR"
sablotengine.pas(375,50) Error: Illegal type conversion
sablotengine.pas(375,65) Error: Illegal type conversion
sablotengine.pas(468,34) Error: Illegal type conversion
sablotengine.pas(476,24) Error: Incompatible types: got "<procedure variable type of function(void_pointer,ulong,LONGINT,const PCHAR,var LONGINT):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLERPUT"
sablotengine.pas(477,24) Error: Incompatible types: got "<procedure variable type of function(void_pointer,ulong,LONGINT,var PCHAR,LONGINT):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLERGET"
sablotengine.pas(478,25) Error: Incompatible types: got "<procedure variable type of function(TSABLOTENGINE,ulong,const PCHAR,const PCHAR,var LONGINT):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLEROPEN"
sablotengine.pas(479,26) Error: Incompatible types: got "<procedure variable type of function(void_pointer,ulong,LONGINT):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLERCLOSE"
sablotengine.pas(480,27) Error: Incompatible types: got "<procedure variable type of function(void_pointer,ulong,const PCHAR,const PCHAR,var PCHAR,var LONGINT):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLERGETALL"
sablotengine.pas(481,31) Error: Incompatible types: got "<procedure variable type of function(void_pointer,ulong,var PCHAR):LongInt;ClearStack;Cdecl>" expected "PSCHEMEHANDLERFREEMEMORY"
sablotengine.pas(495,29) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(497,43) Error: Illegal type conversion
sablotengine.pas(497,53) Error: Illegal type conversion
sablotengine.pas(512,29) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(513,43) Error: Illegal type conversion
sablotengine.pas(513,53) Error: Illegal type conversion
sablotengine.pas(527,29) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(529,46) Error: Illegal type conversion
sablotengine.pas(529,56) Error: Illegal type conversion
sablotengine.pas(542,14) Error: Illegal type conversion
sablotengine.pas(544,14) Error: Illegal type conversion
sablotengine.pas(567,28) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(570,44) Error: Illegal type conversion
sablotengine.pas(583,29) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(606,28) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(612,46) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(617,80) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(641,31) Error: Illegal type conversion
sablotengine.pas(649,54) Error: Illegal type conversion
sablotengine.pas(649,70) Error: Illegal type conversion
sablotengine.pas(649,86) Error: Illegal type conversion
sablotengine.pas(688,35) Error: Illegal type conversion
sablotengine.pas(694,41) Error: Illegal type conversion
sablotengine.pas(699,45) Error: Illegal type conversion
sablotengine.pas(705,51) Error: Illegal type conversion
sablotengine.pas(708,66) Error: Duplicate identifier BASE
sablotengine.pas(708,66) Hint: Identifier already defined in sablotengine.pas at line 174
sablotengine.pas(714,28) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(730,29) Error: call by var parameters have to match exactly: Got SHORTSTRING expected ANSISTRING
sablotengine.pas(746) Fatal: There were 44 errors compiling module, stopping
Exit code: 1

Reply by email

Fernando Lozano

Hi Christophe,

Show quoted text 7 lines
> Based on previous posts to the list I dowload Sablopas but could > not compile using FPC 1.0.6 on Windows 95: > You need to compile it with -Sd as Peter said. Glad to see people using (or trying to) to use it :-). Feel free to comment.

Pelase see my previous post. -Sd got the same errors. :-(

Mayne you'd be kind enough to provide a binary release ready to run on FPC, including all DLLs I need to get at other sites, or maybe the FPC team should think about to include Sablopas on the FPC distribution. XML parsers and DOM are a must-have nowadays.

[]s, Fernando Lozano

Reply by email

Michael Van Canneyt
to Fernando Lozano
Fernando Lozano wrote 16 lines
Hi Christophe, > > Based on previous posts to the list I dowload Sablopas but could > > not compile using FPC 1.0.6 on Windows 95: > > > > You need to compile it with -Sd as Peter said. > > Glad to see people using (or trying to) to use it :-). Feel free to comment. Pelase see my previous post. -Sd got the same errors. :-( Mayne you'd be kind enough to provide a binary release ready to run on FPC, including all DLLs I need to get at other sites, or maybe the FPC team should think about to include Sablopas on the FPC distribution. XML parsers and DOM are a must-have nowadays.

The FCL already has support for XML and DOM. See the dom, xmlread,xmlwrite etc units in the FCL.

Michael.

Reply by email

Unknown author
to Fernando Lozano: Pelase see my previous post. -Sd got the same errors. :-( Mayne you'd be kind enough to…

En réponse à Fernando Lozano :

Pelase see my previous post. -Sd got the same errors. :-(

Oops ! I'm not at home now but I'm gonna check this when back. I'm also going to add the necessary switches in order to compile Sablopas without passing params to the compiler. I will post a mail here when done.

Mayne you'd be kind enough to provide a binary release ready to run on FPC, including all DLLs.

I'm thinking of it. But I must before write a simple make file to get a more efficient source install. I have never done that. If someone is interested in. I'm also searching for someone to test under Windows and Free Bsd on new release. Feel free to contact.

maybe the FPC team should think about to include Sablopas on the FPC

distribution.

If the FPC developpers want to include Sablopas in the standard distribution I would be happy. They can take the whole or only the units wrapping the H files. I can change the licence if need. It is not a problem, I like the modified LGPL used by FPC.

Cheers,

Christophe

Reply by email