Re: [fpc-pascal] FPC linking syntax error

2015-06-22 Thread Stéphane Aulery
Hello, Le 21/06/2015 13:58, Marco van de Voort a écrit : In our previous episode, patspiper said: Compiling the following simple program (from fpc prog manual http://www.freepascal.org/docs-html/prog/progsu46.html#x53-520001.2.46) yields a linking syntax error: Is this a bug? Not of a

Re: [fpc-pascal] FPC linking syntax error

2015-06-21 Thread patspiper
On 21/06/15 17:46, Marco van de Voort wrote: In our previous episode, patspiper said: INPUT( -l c ) I think that should be -lc, not -l c. I don't know where the extra space is coming from in your case. Exactly! I have just posted a message with my findings. Which program produces link.res?

Re: [fpc-pascal] FPC linking syntax error

2015-06-21 Thread Jonas Maebe
On 21/06/15 11:28, patspiper wrote: Using 'ppc386 -s program1.pp' instead, line 121 of link.res is '-l c' in the section: INPUT( -l c ) I think that should be -lc, not -l c. I don't know where the extra space is coming from in your case. Jonas

Re: [fpc-pascal] FPC linking syntax error

2015-06-21 Thread patspiper
On 21/06/15 14:58, Marco van de Voort wrote: In our previous episode, patspiper said: Compiling the following simple program (from fpc prog manual http://www.freepascal.org/docs-html/prog/progsu46.html#x53-520001.2.46) yields a linking syntax error: Is this a bug? Not of a general kind, since

Re: [fpc-pascal] FPC linking syntax error

2015-06-21 Thread Mark Morgan Lloyd
patspiper wrote: On 21/06/15 14:58, Marco van de Voort wrote: In our previous episode, patspiper said: Compiling the following simple program (from fpc prog manual http://www.freepascal.org/docs-html/prog/progsu46.html#x53-520001.2.46) yields a linking syntax error: Is this a bug? Not of a

Re: [fpc-pascal] FPC linking syntax error

2015-06-21 Thread patspiper
On 21/06/15 16:40, Jonas Maebe wrote: On 21/06/15 11:28, patspiper wrote: Using 'ppc386 -s program1.pp' instead, line 121 of link.res is '-l c' in the section: INPUT( -l c ) I think that should be -lc, not -l c. I don't know where the extra space is coming from in your case. Exactly! I have

Re: [fpc-pascal] FPC linking syntax error

2015-06-21 Thread patspiper
On 21/06/15 14:58, Marco van de Voort wrote: In our previous episode, patspiper said: Compiling the following simple program (from fpc prog manual http://www.freepascal.org/docs-html/prog/progsu46.html#x53-520001.2.46) yields a linking syntax error: Is this a bug? Not of a general kind, since

Re: [fpc-pascal] FPC linking syntax error

2015-06-21 Thread Jonas Maebe
On 21/06/15 15:50, patspiper wrote: So the issue is fpc producing link.res with a -l c instead of -lc. Which program specifically produces link.res? It's the compiler. But this can't be a problem that always occurs, because otherwise make all would fail too as fpmake by default also links to

Re: [fpc-pascal] FPC linking syntax error

2015-06-21 Thread Marco van de Voort
In our previous episode, patspiper said: Compiling the following simple program (from fpc prog manual http://www.freepascal.org/docs-html/prog/progsu46.html#x53-520001.2.46) yields a linking syntax error: Is this a bug? Not of a general kind, since it works on most Linux distros. E.g. it

Re: [fpc-pascal] FPC linking syntax error

2015-06-21 Thread Marco van de Voort
In our previous episode, patspiper said: INPUT( -l c ) I think that should be -lc, not -l c. I don't know where the extra space is coming from in your case. Exactly! I have just posted a message with my findings. Which program produces link.res? Maybe the problem is the $linklib

[fpc-pascal] FPC linking syntax error

2015-06-21 Thread patspiper
Hi, Compiling the following simple program (from fpc prog manual http://www.freepascal.org/docs-html/prog/progsu46.html#x53-520001.2.46) yields a linking syntax error: program Project1; {$Linklib c} Const P : PChar = 'This is fun !'; Function strlen (P: PChar): Longint; cdecl; external;