[fpc-pascal] compilation feeback

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Apr 30 09:51:44 CEST 2010


On 30 Apr 2010, at 09:40, spir ☣ wrote:

> -1- "local" variable
> When a program-global variable is unused, the compiler message reads  
> 'Note: Local variable "x" not used'.
> Is this a mistake or do I misunderstand some point?

Such variables are local to the current program or to the unit (in  
case they are declared in the implementation of a unit). We could just  
remove the "local" though.

> -2- place of error messages
> In the output, warnings seem to always come before the deadly  
> 'Compilation failed'. But error messages seem to randomly be placed  
> before, after, or even both. Is there a logic I don't catch behind  
> this? Or is it a bug of my terminal's writing system (I use a VTE).

I've never seen that.

> -3- linker message
> I systematically get
> '/use/bin/ld: warning: link.res contains output sections; did you  
> forget -T?'
> What does this mean?

http://www.freepascal.org/faq.var#unix-ld219


Jonas


More information about the fpc-pascal mailing list