[fpc-pascal]FPC on older linuxes?

2003-11-14 Thread Rainer Hantsch
Hi!

I want to ask if it is possible to run the latest 1-2 versions of FPC on
really old Linux systems like SuSE 5.2 (2.0.33 kernel) and/or if there is a
way to get this working.
Currently I stuck with FPC 1.0.4, because I am unable to use newer versions on
old SuSE's. So I would even have to do everything twice, or stay on these old
version.


Another question belongs to GUI programming (Linux, too!).
A lot of things are/have_been done to make FPC working in some manner with
GTK+, but it is extremely complicated in usage, so I currently prefer either
to use Kylix (when GUI is a *must*) or I write ncurses apps in FPC (I love
small and fast apps, so this is my favorite).
Is there something which makes life easier with GUI? - But again, this must
also work on old SuSE 5.2, so this is a sub-point to the above question.


mfg

  Ing. Rainer Hantsch

-- 
.-.
|  \\|//  Ing. Rainer HANTSCH  -  Hardware + Software |
|  (o o)Service - Support - WEB-Design und Programmierung |
|--oOOo-(_)-oOOo--|
| Ing. Rainer HANTSCH |  mail: [EMAIL PROTECTED]   |
| Khunngasse 21/20|   www: http://www.hantsch.co.at   |
| A-1030 Vienna   |   tel: +43-1-79885380fax: +43-1-798853818 |
| ** A u s t r i a ** | handy: +43-664-9194382   UID-Nr: ATU 11134002 |
'-'


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]class methods in FPC version 1.9.0

2003-11-14 Thread Dean Zobec

> See also http://www.stack.nl/~marcov/buildfaq.pdf for some pointers about
> building the FPC cvs.
Thank you for the tutorial, it helped me a lot. It was exciting to see the 
compiler building process on the screen :-) So now I have a 1.9.1 for i386 
Linux! 
I have encountered a problem when doing a "make all" from the cvs tree 
(checked out yesterday) that maybe is worth mentioning:
when compiling pipes.pp i've got an  error in pipes.inc 
(/usr/local/src/fpc/devel/fpc/fcl/unix/pipes.inc)
got longint expected boolean

Uses
{$ifdef ver1_0}
  Linux
{$else}
  Unix
{$endif}
  ;

Function CreatePipeHandles (Var Inhandle,OutHandle : Longint) : Boolean;

begin
  Result := AssignPipe (Inhandle,OutHandle);
end;

{
  $Log: pipes.inc,v $
  Revision 1.5  2002/09/07 15:15:29  peter
* old logs removed and tabs fixed

}

I did a simple typecast:
Result := Boolean(AssignPipe (Inhandle,OutHandle));
and all went well in the next "make all"

Hope I didn't broke something else with this typecast.

Thank you again for all the help. Hope to be able to make up some day with a 
humble contribution to the project. :-) 
Btw I was thinking about beginning a port of the JUnit testing framework to 
Free Pascal, as I'm no longer feeling safe without a unit testing net when 
programming. Could it be interesting? Or it's been already done?

Ciao, Dean

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal]OT: Error Accessing List Archive

2003-11-14 Thread Shawn Tan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dear ppl,

How do I access the list archive?? I tried accessing,
http://lists.freepascal.org/mailman/listinfo/fpc-pascal and clicking on
the list archives, but it resulted in an error.. I would like to search
the archives first before posting questions.. thanks...

- -- 
with metta,
Shawn Tan.
===
ICQ UIN: 1802628 keyserver.net: F9BA3B9A counter.li.org: 297959
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/tJl39KUEj/m6O5oRAprSAJ9Bgbr9pE+fB879a0WYaDW6bjVSUQCgjt1x
qWwf438J703LHPvlCNgSH/k=
=boe8
-END PGP SIGNATURE-

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]class methods in FPC version 1.9.0

2003-11-14 Thread Marco van de Voort
> > See also http://www.stack.nl/~marcov/buildfaq.pdf for some pointers about
> > building the FPC cvs.
> Thank you for the tutorial, it helped me a lot. It was exciting to see the 
>   ;

(unit Unix is something that I'm working on atm)
 
> I did a simple typecast:
> Result := Boolean(AssignPipe (Inhandle,OutHandle));
> and all went well in the next "make all"

> Hope I didn't broke something else with this typecast.

The typecast is incorrect. It should be

Result:=(AssignPipe(..)<>-1);
 
I'll fix this later this morning, thanks for reporting. 

> Thank you again for all the help. Hope to be able to make up some day with a 
> humble contribution to the project. :-) 
> Btw I was thinking about beginning a port of the JUnit testing framework to 
> Free Pascal, as I'm no longer feeling safe without a unit testing net when 
> programming. Could it be interesting? Or it's been already done?

Jedi has a Delphi port of JUnit called DUnit, but I doubt it will work,
it meddles too much with the internals of objects.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]FPC on older linuxes?

2003-11-14 Thread Michael Van Canneyt


On Fri, 14 Nov 2003, Rainer Hantsch wrote:

> Hi!
>
> I want to ask if it is possible to run the latest 1-2 versions of FPC on
> really old Linux systems like SuSE 5.2 (2.0.33 kernel) and/or if there is a
> way to get this working.
> Currently I stuck with FPC 1.0.4, because I am unable to use newer versions on
> old SuSE's. So I would even have to do everything twice, or stay on these old
> version.

All FPC versions should run on all linux versions - unless you start linking to
C libraries, in which case you *may* have problems. The oldest version I
have FPC running on is SuSE 6.1.

>
>
> Another question belongs to GUI programming (Linux, too!).
> A lot of things are/have_been done to make FPC working in some manner with
> GTK+, but it is extremely complicated in usage, so I currently prefer either
> to use Kylix (when GUI is a *must*) or I write ncurses apps in FPC (I love
> small and fast apps, so this is my favorite).
> Is there something which makes life easier with GUI? - But again, this must
> also work on old SuSE 5.2, so this is a sub-point to the above question.

Use lazarus.

http://www.lazarus.freepascal.org/

Works faster than kylix and is 100% FPC. It works _very_ well on linux.
(and soon on Win32, it seems)

And it uses GTK in the background :-)

BUT: It needs the latest FPC and C apps - so you may experience problems
when linking. This is unavoidable - you'll have to bite through it.

Michael.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]OT: Error Accessing List Archive

2003-11-14 Thread Jonas Maebe
On vrijdag, nov 14, 2003, at 09:59 Europe/Brussels, Shawn Tan wrote:

How do I access the list archive?? I tried accessing,
http://lists.freepascal.org/mailman/listinfo/fpc-pascal and clicking on
the list archives, but it resulted in an error.. I would like to search
the archives first before posting questions.. thanks...
There's a third-party archive at 


Jonas

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]OT: Error Accessing List Archive

2003-11-14 Thread vkrish



> 
> On vrijdag, nov 14, 2003, at 09:59 Europe/Brussels, Shawn Tan wrote:
> 
> > How do I access the list archive?? I tried accessing,
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal and clicking on
> > the list archives, but it resulted in an error.. I would like to search
> > the archives first before posting questions.. thanks...
> 
> There's a third-party archive at 
> 
> 
Sometime back I had similar problems. So I created a gmane newsgroup.
Check it out at http://news.gmane.org/gmane.comp.compilers.free-pascal.general

cheers,
-Krish


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]OT: Error Accessing List Archive

2003-11-14 Thread Shawn Tan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> 
> On vrijdag, nov 14, 2003, at 09:59 Europe/Brussels, Shawn Tan wrote:
> 
> > How do I access the list archive?? I tried accessing,
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal and clicking
> > on the list archives, but it resulted in an error.. I would like to
> > search the archives first before posting questions.. thanks...
> 
> There's a third-party archive at 
> 

Thanks.. Got it...

- -- 
with metta,
Shawn Tan.
===
ICQ UIN: 1802628 keyserver.net: F9BA3B9A counter.li.org: 297959
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD4DBQE/tMNp9KUEj/m6O5oRApOzAJYy/9Kgx3lJXMpV/JTGXPd/QQTtAJwOdcIh
vb6bgJvMF+0ogvMZHwxNpg==
=jROC
-END PGP SIGNATURE-

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]OT: Error Accessing List Archive

2003-11-14 Thread Florian Klaempfl
[EMAIL PROTECTED] wrote:
On vrijdag, nov 14, 2003, at 09:59 Europe/Brussels, Shawn Tan wrote:


How do I access the list archive?? I tried accessing,
http://lists.freepascal.org/mailman/listinfo/fpc-pascal and clicking on
the list archives, but it resulted in an error.. I would like to search
the archives first before posting questions.. thanks...
There's a third-party archive at 


Sometime back I had similar problems. So I created a gmane newsgroup.
Check it out at http://news.gmane.org/gmane.comp.compilers.free-pascal.general
I added these infos to the fpc mailing list page.



___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]class methods in FPC version 1.9.0

2003-11-14 Thread Dean Zobec
> The typecast is incorrect. It should be
>
> Result:=(AssignPipe(..)<>-1);
Thank you.
> I'll fix this later this morning, thanks for reporting.
It's a pleasure :-) Thank you for the fix.

>Delphi port of JUnit called DUnit, but I doubt it will work,
> it meddles too much with the internals of objects.
I've used it for a year or so, the Juanco's DUnit 
http://dunit.sourceforge.net/ it's good but maybe too complicated and differs 
from the JUnit framework in some important parts to leverage the potential of 
Delphi against Java. I'm not quite sure of the real benefits. I think it 
misses the good idea of Assert class methods that makes it easy to use Mock 
Objects.
Another more recent version is xUnit4Delphi, written more closely to the 
original design. And finally a visual testing suite written by a friend of 
mine, Mike Johnson http://www.bigattichouse.com/qtest.php, but I'm much more 
oriented towards a console testing framework.
I'll try to study all of the designs more closely.
Ciao, Dean


___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]class methods in FPC version 1.9.0

2003-11-14 Thread Vincent Snijders
On Fri, 14 Nov 2003 09:59:53 +0100 (CET)
[EMAIL PROTECTED] (Marco van de Voort) wrote:

> > Btw I was thinking about beginning a port of the JUnit testing
> > framework to Free Pascal, as I'm no longer feeling safe without a
> > unit testing net when programming. Could it be interesting? Or it's
> > been already done?
> 
> Jedi has a Delphi port of JUnit called DUnit, but I doubt it will
> work, it meddles too much with the internals of objects.
I am trying to port the DUnit test framework to fpc and lazarus, see for
more info
http://lazarus-ccr.sourceforge.net/index.php?wiki=DunitProject.

The testframework unit compiles and I don't see to many troubles with
the text test runner. I am still a bit in a doubt, if it would be
possible to put the test classes in a library and make the path to
library a command line argument. I have to do some research to find out
to what level fpc supports libraries.

Vincent.

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]class methods in FPC version 1.9.0

2003-11-14 Thread Dean Zobec
> I am trying to port the DUnit test framework to fpc and lazarus, see for
> more info
> http://lazarus-ccr.sourceforge.net/index.php?wiki=DunitProject.
I'll take a look
> The testframework unit compiles
I was able to compile it too, but I have still a lot of work to make it work I 
guess ;-)
> and I don't see to many troubles with
> the text test runner.
yes that's the easy part

> library a command line argument. I have to do some research to find out
> to what level fpc supports libraries.
From what I've seen in the first three days with fpc, I think you'll have no 
problems. :-)
Ciao, Dean




___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal]FP newbie

2003-11-14 Thread Eduardo Morras

But some Mac user (/me smells a Jonas) will probably correct me :-)

Yes, you are true. Apple contracts (is this the correct verb?) N.Wirth in 
1982-3 to develop an Object Pascal language/compiler. MacOS was written in 
pascal and assembler from  version 0 to 6.x.; System 7.0 and 7.1 was a mix 
of C/C++, ObjectPascal and Assm 68k and since then C/C++ and assm 68k/PPC. 
Apple was "forced" to change to C/C++ because developers as Adobe, 
Macromedia, etc... wanted it

As a personal note i found, when C/C++ comes as the principal language, 
more instability, bugs and errors.

There are 10 groups of people, those who can count in binary and those who 
cannot
  Hay 10 tipos de personas, los que saben contar en binario y los que no

___
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal