Re: [fpc-pascal] Re: library questions

2011-07-19 Thread Rainer Stratmann
Am Sunday 17 July 2011 17:26:52 schrieb leledumbo: > {$linklib xxx} would link libxxx.so so you already do it right. The problem > might be in your code then. What's the linker error? A general error written in the output window of lazarus. Is it possible to get an individual error from the linker?

Re: [fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

2011-07-19 Thread Marco van de Voort
In our previous episode, Sven Barth said: > If I remember correctly this is simply the way Unix behaves. If the > parent process terminates all children are terminated as well. I don't > know how one can circumvent this. Probably you have to walk to some of the job control related commands which

Re: [fpc-pascal] Partially initializing array of records

2011-07-19 Thread Clay Stuart
Ok. Thanks everyone. Clay On Tue, Jul 19, 2011 at 2:30 PM, Martin wrote: > On 19/07/2011 19:05, Clay Stuart wrote: > >> How do people initialize large amounts of information in practice? Do >> they just read in files and convert them over dynamically? >> > > There is an example for pre-initia

Re: [fpc-pascal] Partially initializing array of records

2011-07-19 Thread Martin
On 19/07/2011 19:05, Clay Stuart wrote: How do people initialize large amounts of information in practice? Do they just read in files and convert them over dynamically? There is an example for pre-initialized variable length arrays in ide\editoroptions.pp line 550 and before. EditorOptions

Re: [fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

2011-07-19 Thread waldo kitty
On 7/19/2011 14:14, Sven Barth wrote: On 19.07.2011 16:52, fred f wrote: Hi, use this code, which starts itself, but when you close first started the second ends as well, what I don't want. with TProcess.Create (Application) do begin CommandLine := Application.ExeName + '&'; Execute; Free; end

Re: [fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

2011-07-19 Thread Sven Barth
On 19.07.2011 16:52, fred f wrote: Hi, use this code, which starts itself, but when you close first started the second ends as well, what I don't want. with TProcess.Create (Application) do begin CommandLine := Application.ExeName + '&'; Execute; Free; end; If I remember

Re: [fpc-pascal] Partially initializing array of records

2011-07-19 Thread Flávio Etrusco
On Tue, Jul 19, 2011 at 2:44 PM, Clay Stuart wrote: > Hello Everyone: > I've got an array of records that looks something like this: > type >       node = record >             foo : array[1..10] of integer; >             bar : array[1..10] of integer; >       end > var >      graph : array[1..5] o

Re: [fpc-pascal] Partially initializing array of records

2011-07-19 Thread Clay Stuart
How do people initialize large amounts of information in practice? Do they just read in files and convert them over dynamically? (Sorry for the potentially stupid questions. I'm just coming to Pascal.) Clay On Tue, Jul 19, 2011 at 1:54 PM, Rainer Stratmann < rainerstratm...@t-online.de> wrote:

Re: [fpc-pascal] Partially initializing array of records

2011-07-19 Thread Rainer Stratmann
Am Tuesday 19 July 2011 19:44:17 schrieb Clay Stuart: > Hello Everyone: > > I've got an array of records that looks something like this: > > type > node = record > foo : array[1..10] of integer; > bar : array[1..10] of integer; > end > > var > graph : array[

Re: [fpc-pascal] Partially initializing array of records

2011-07-19 Thread ik
You are talking about dynamic array: type node = record foo : array of integer; bar : array of integer; end var graph : array of node; SetLength(graph, 5); // Gives you 0..4 elements SetLength(graph.foo, 10); //Gives you 0..9 elements ... Ido On Tue, Ju

[fpc-pascal] Partially initializing array of records

2011-07-19 Thread Clay Stuart
Hello Everyone: I've got an array of records that looks something like this: type node = record foo : array[1..10] of integer; bar : array[1..10] of integer; end var graph : array[1..5] of node; begin... However, the arrays hold different amounts of nu

Re: [fpc-pascal] Re: Object Files

2011-07-19 Thread Lee Jenkins
On 7/19/2011 9:40 AM, leledumbo wrote: since he's changing the OS but not the processor/architecture Right, I forgot this one. Thanks for clarifying. COFF IS cross-OS but not cross architecture, though many other object formats aren't. OK, from a practical standpoint, I can't interchange obj

Re: [fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

2011-07-19 Thread fred f
Hi, use this code, which starts itself, but when you close first started the second ends as well, what I don't want. with TProcess.Create (Application) do begin CommandLine := Application.ExeName + ' &'; Execute; Free; end; Thanks. F. On Sat, Jul 16, 2011 at 5:49 AM, leledumbo

[fpc-pascal] Re: Object Files

2011-07-19 Thread leledumbo
> since he's changing the OS but not the processor/architecture Right, I forgot this one. Thanks for clarifying. COFF IS cross-OS but not cross architecture, though many other object formats aren't. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Object-Files-tp

Re: [fpc-pascal] Re: Object Files

2011-07-19 Thread Marco van de Voort
In our previous episode, Sven Barth said: > compatible and the different ELF based systems might be compatible if > they run on the same platform (don't know that for sure though). > But even if you'd have compatible object files you'd have the problem > that e.g. the Linux one might contain diff