[fpc-pascal] Newbie question#1

2006-02-11 Thread Matthew Fero
Hi, When I try to compile my program with: fpc myfile.p This produces no errors and myfile.o appears in my home directory. However, there is no executable file (a.out). Am I doing something wrong? MF ___ fpc-pascal maillist - fpc-pascal@lis

[fpc-pascal] string in fpc

2006-02-11 Thread Andrzej Baran
Hello, I noticed that declaration of variable like: a:string[1]; is not valid any more in fpc-2.0.2, so how can I declare a variable to get few char string instead of full length thanks Andy ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org htt

Re: [fpc-pascal] Newbie question#1

2006-02-11 Thread Jonas Maebe
On 10 Feb 2006, at 17:10, Matthew Fero wrote: When I try to compile my program with: fpc myfile.p This produces no errors and myfile.o appears in my home directory. However, there is no executable file (a.out). Am I doing something wrong? Unless myfile is a unit, there should also be a

Re: [fpc-pascal] TProcess execution

2006-02-11 Thread Micha Nelissen
On Wed, 8 Feb 2006 20:30:50 +0100 Micha Nelissen <[EMAIL PROTECTED]> wrote: > How can I know whether a TProcess failed when trying to execute it ? I'm also having problems how to when the process has started or failed. I thought of trying to see whether its output handle was signalled for reading

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Jonas Maebe
On 10 Feb 2006, at 20:31, Andrzej Baran wrote: I noticed that declaration of variable like: a:string[1]; is not valid any more in fpc-2.0.2, so how can I declare a variable to get few char string instead of full length It works here, even if ansistrings are the default ({$h+} or Delphi m

Re: [fpc-pascal] Newbie question#1

2006-02-11 Thread Marco van de Voort
> When I try to compile my program with: > fpc myfile.p > > This produces no errors and myfile.o appears in my home directory. > However, there is no executable file (a.out). Am I doing something > wrong? a.out is an ancient unix fileformat, that is still abused as default name in gcc. (eve

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Marco van de Voort
> On 10 Feb 2006, at 20:31, Andrzej Baran wrote: > > > I noticed that declaration of variable like: > > a:string[1]; is not valid any more in fpc-2.0.2, so how can I > > declare a > > variable to get few char string instead of full length > > It works here, even if ansistrings are the default (

Re: [fpc-pascal] Internal error 200312122

2006-02-11 Thread Koenraad Lelong
Peter Vreman schreef: Martin Schreiber schreef: On Sunday 05 February 2006 17.11, Koenraad Lelong wrote: ... Internalerror numbers are just unique numbers be using . They don't have any meaning. Quick intro for debugging this. - Build compiler with debug info: 'make cycle OPT=-gl' - Compile

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Michael Van Canneyt
On Sat, 11 Feb 2006, Marco van de Voort wrote: > > On 10 Feb 2006, at 20:31, Andrzej Baran wrote: > > > > > I noticed that declaration of variable like: > > > a:string[1]; is not valid any more in fpc-2.0.2, so how can I > > > declare a > > > variable to get few char string instead of full le

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Marco van de Voort
> On Sat, 11 Feb 2006, Marco van de Voort wrote: > > > > On 10 Feb 2006, at 20:31, Andrzej Baran wrote: > > > > > > > I noticed that declaration of variable like: > > > > a:string[1]; is not valid any more in fpc-2.0.2, so how can I > > > > declare a > > > > variable to get few char string inst

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Jonas Maebe
On 11 Feb 2006, at 17:40, Marco van de Voort wrote: Because shortstring is defined as String[255] Hmm. How do I get real shortstring behaviour in delphi mode then? A string[255] is identical to a "real shortstring". Jonas ___ fpc-pascal maillist

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Marco van de Voort
> On 11 Feb 2006, at 17:40, Marco van de Voort wrote: > > >> Because shortstring is defined as String[255] > > > > Hmm. How do I get real shortstring behaviour in delphi mode then? > > A string[255] is identical to a "real shortstring". I mean including the possibilties to have non-255 sizes. __

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Felipe Monteiro de Carvalho
On 2/11/06, Marco van de Voort <[EMAIL PROTECTED]> wrote: > I mean including the possibilties to have non-255 sizes. var x : string[4]; I suppose? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Marco van de Voort
> On 2/11/06, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > I mean including the possibilties to have non-255 sizes. > > var x : string[4]; > > I suppose? Apparantly so yes. Assumed that would equal to ansistring[4], but it does to tp string[4]. _

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Michael Van Canneyt
On Sat, 11 Feb 2006, Marco van de Voort wrote: > > On 11 Feb 2006, at 17:40, Marco van de Voort wrote: > > > > >> Because shortstring is defined as String[255] > > > > > > Hmm. How do I get real shortstring behaviour in delphi mode then? > > > > A string[255] is identical to a "real shortstrin

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Michael Van Canneyt
On Sat, 11 Feb 2006, Marco van de Voort wrote: > > On 2/11/06, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > > I mean including the possibilties to have non-255 sizes. > > > > var x : string[4]; > > > > I suppose? > > Apparantly so yes. Assumed that would equal to ansistring[4], but it do