Re: [fpc-pascal] cdecl or stdcall on WinCE for ARM

2007-11-23 Thread Florian Klaempfl
Adrian Veith schrieb:
> Hi,
> 
> what is the right calling convention for using system libraries on wince
> for ARM ?
> 
> I wrote a pascal wrapper for a system dll and used stdcall for the
> calling convention - and the program worked.
> I changed to cdecl - and the program works as well.
> 
> In my opinion the program should have crashed on one of the two.
> 
> Now I am puzzled.
>

Both are equal on arm, you could even use register and things won't change.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] cdecl or stdcall on WinCE for ARM

2007-11-23 Thread Henry Vermaak
On 23/11/2007, Adrian Veith <[EMAIL PROTECTED]> wrote:
> Hi,
>
> what is the right calling convention for using system libraries on wince
> for ARM ?
>
> I wrote a pascal wrapper for a system dll and used stdcall for the
> calling convention - and the program worked.
> I changed to cdecl - and the program works as well.
>
> In my opinion the program should have crashed on one of the two.
>

i guess those calling conventions don't exist on arm.  the compiler
probably just ignores them and chooses the default one.  there should
be a warning/note for this, imho.  gcc does do that, iirc.

(i think arm only has a "normal" and a soft fpu calling convention)

> Now I am puzzled.
>
> Cheers,
>
> Adrian.

henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] cdecl or stdcall on WinCE for ARM

2007-11-23 Thread Adrian Veith

Florian Klaempfl schrieb:

Adrian Veith schrieb:
  

Hi,

what is the right calling convention for using system libraries on wince
for ARM ?

I wrote a pascal wrapper for a system dll and used stdcall for the
calling convention - and the program worked.
I changed to cdecl - and the program works as well.

In my opinion the program should have crashed on one of the two.

Now I am puzzled.




Both are equal on arm, you could even use register and things won't change.
  



I have guessed something like that - otherwise it would be impossible.

Thanks,

Adrian.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Lazarus + Qt4 in FreeBSD

2007-11-23 Thread Mattias Gaertner
On Thu, 22 Nov 2007 13:50:59 -0200
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> Hi!
> 
> How to build lazarus with Qt4?? I set the interface of lazarus to Qt
> and try rebuild only LCL, but when it is rebuilding, it stops because
> it don't found qt4.pas.
> 
> I'm doing all steps of wiki
> (http://wiki.lazarus.freepascal.org/Qt_Interface).
> ..

The page is still correct and it works here under linux.
Please open a terminal and try this:

cd lazarus/lcl
make LCL_PLATFORM=qt clean all OPT=-vut > log.txt

Then take a look at log.txt and find out, why FPC does not find/like the
file lcl/interfaces/qt/qt4.pas

 
> Qt 4.3.1 is installed from ports and my Lazarus snapshot verion
> 0.9.25 of 22-nov-2007...


Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Lazarus + Qt4 in FreeBSD

2007-11-23 Thread [EMAIL PROTECTED]
Hi!

How to build lazarus with Qt4?? I set the interface of lazarus to Qt and try
rebuild only LCL, but when it is rebuilding, it stops because it don't found
qt4.pas.

I'm doing all steps of wiki
(http://wiki.lazarus.freepascal.org/Qt_Interface).
..

Qt 4.3.1 is installed from ports and my Lazarus snapshot verion 0.9.25 of
22-nov-2007...
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] 0.9.24 released

2007-11-23 Thread S.Anıl Yılmaz

Rainer Stratmann wrote:

I wanted to use, but find it difficult to install.
Runs it with KDE?
I installed sidux www.sidux.com
Runs it with KDE Desktop of sidux?
Is there a Distribution with build in Lazarus?

kind regards
Rainer
  

Regards, Bernd.
___
I'm regularly updating my Lazarus installation with daily snapshot RPMs 
or stable releases on PCLinuxOS , a KDE and 
RPM based
distro. There has not been a single problem. Especially the latest ones 
are great, in terms of stability and features. You should install GTK2 
runtime and
development libraries though and rebuild Lazarus IDE and RTL to use GTK2 
as the default widget set.

Hope this helps.
Anil.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] cdecl or stdcall on WinCE for ARM

2007-11-23 Thread Adrian Veith

Hi,

what is the right calling convention for using system libraries on wince 
for ARM ?


I wrote a pascal wrapper for a system dll and used stdcall for the 
calling convention - and the program worked.

I changed to cdecl - and the program works as well.

In my opinion the program should have crashed on one of the two.

Now I am puzzled.

Cheers,

Adrian.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal