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

2007-12-21 Thread [EMAIL PROTECTED]
Hi! I do some tests in my FreeBSD 6.1. In another FreeBSD 6.2 I build QT from ports (that is an automated process, that applies some patchs before build). In my FreeBSD 6.1 I build QT without ports (./configure, make, make install) and I got the same result, but with a more detailed backtrace (bec

Re: [fpc-pascal] MPICH on Pascal

2007-12-21 Thread Lourival Mendes
Dear Mattias, Replacing the {$linklib c} with {$IFDEF Unix} {$linklib c} {$ENDIF} It really worked, thanks... Now some other interesting stuff happended, as you probably did on the -l option you created the mpich.dll but the program, even successufully compiled, it doens find the mpic

[fpc-pascal] getlastoserror giving wrong value?

2007-12-21 Thread Marc Santhoff
Hi, when I try to use getlastoserror something "funny" happens. We're dealing with: $ ll /home/marc/program/Test_C/unreadable/ ls: : Permission denied The source: tmp := aFile^ + '/' + dirrec.Name; writeln('file: '+ tmp ); n := fpaccess(tmp , R_OK); writeln(n); n := getlastoserror;

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

2007-12-21 Thread Den Jean
On Wednesday 19 December 2007 11:37:33 am [EMAIL PROTECTED] wrote: > I do some tests in my FreeBSD 6.1. In another FreeBSD 6.2 I build QT from > ports (that is an automated process, that applies some patchs before > build). In my FreeBSD 6.1 I build QT without ports (./configure, make, make > insta

[fpc-pascal] Type declaration

2007-12-21 Thread Damien Gerard
Hi ! I would like to know if there are any differences between these two following declarations : type TMyType = smallint; And type TMyType = type smallint; -- Damien Gerard [EMAIL PROTECTED] People who used magic without knowing what they were doing usually came to a sticky end.

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

2007-12-21 Thread [EMAIL PROTECTED]
I don't remember if I'm running lazaurs with ./startlazarus or ./lazarus, I will see if this ocurs with GTK2.. Yes, QT4 ports don't work, then I build QT4 manualy. My steps: 1) ./configure -prefix /usr/local/ -no-sse2 -no-glib do QT4 install in /usr/local and disable sse2 and GLib suport.

Re: [fpc-pascal] getlastoserror giving wrong value?

2007-12-21 Thread Jonas Maebe
On 21 Dec 2007, at 06:37, Marc Santhoff wrote: when I try to use getlastoserror something "funny" happens. We're dealing with: $ ll /home/marc/program/Test_C/unreadable/ ls: : Permission denied The source: tmp := aFile^ + '/' + dirrec.Name; writeln('file: '+ tmp ); n := fpaccess(tmp ,

[fpc-pascal] String comparison

2007-12-21 Thread Damien Gerard
Just another question :) What is the most efficient way to check if a string is empty or not ? if s = '' then ... of this one if Length(s) <> 0 then ... -- Damien Gerard [EMAIL PROTECTED] People who used magic without knowing what they were doing usually came to a sticky end. All over the e

Re: [fpc-pascal] String comparison

2007-12-21 Thread Damien Gerard
On Dec 21, 2007, at 2:47 PM, Daniël Mantione wrote: Op Fri, 21 Dec 2007, schreef Damien Gerard: Just another question :) What is the most efficient way to check if a string is empty or not ? if s = '' then ... of this one if Length(s) <> 0 then ... Both generate the same code. Thanks

Re: [fpc-pascal] getlastoserror giving wrong value?

2007-12-21 Thread Marc Santhoff
Am Freitag, den 21.12.2007, 13:37 +0100 schrieb Jonas Maebe: > On 21 Dec 2007, at 06:37, Marc Santhoff wrote: > > > when I try to use getlastoserror something "funny" happens. > > > > We're dealing with: > > > > $ ll /home/marc/program/Test_C/unreadable/ > > ls: : Permission denied > > > > The sou

Re: [fpc-pascal] String comparison

2007-12-21 Thread Daniël Mantione
Op Fri, 21 Dec 2007, schreef Damien Gerard: > > Just another question :) > What is the most efficient way to check if a string is empty or not ? > > if s = '' then ... > of this one > if Length(s) <> 0 then ... Both generate the same code. Daniël__

Re: [fpc-pascal] Type declaration

2007-12-21 Thread Damien Gerard
On Dec 21, 2007, at 3:53 PM, ik wrote: Hi, On Dec 21, 2007 3:23 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: Hi ! I would like to know if there are any differences between these two following declarations : type TMyType = smallint; This is an "alias" to smallint, giving it a new way r

[fpc-pascal] Makefile with fpcmake

2007-12-21 Thread Damien Gerard
I am trying to use fpcmake to compile my fpc programs (console, i386/ OS X Leopard, fpc 2.2.0) ut I've got the following : Shani [milipili] ...ects/Sayuri/trunk/sayuri % fpcmake -Tall - vw

Re: [fpc-pascal] Type declaration

2007-12-21 Thread ik
Hi, On Dec 21, 2007 3:23 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: > > Hi ! > > I would like to know if there are any differences between these two > following declarations : > > type > TMyType = smallint; This is an "alias" to smallint, giving it a new way reference it. > > And > > type

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

2007-12-21 Thread Den Jean
On Friday 21 December 2007 03:06:32 am [EMAIL PROTECTED] wrote: > Den, you want screenshots? Then see... thanks ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MPICH on Pascal

2007-12-21 Thread Mattias Gaertner
On Thu, 20 Dec 2007 08:58:49 -0300 "Lourival Mendes" <[EMAIL PROTECTED]> wrote: > Dear Mattias, > > Replacing the {$linklib c} with > {$IFDEF Unix} > {$linklib c} > {$ENDIF} > > It really worked, thanks... > > Now some other interesting stuff happended, as you probably did on > the -