[fpc-pascal] Changes in 2.4.0

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Mar 30 17:01:52 CEST 2010

On 30 Mar 2010, at 16:47, lists.fpc-pascal at duinheks.nl wrote:

> JM > The RTL sources indicate that they are only available when you  
> compile your
> JM > application using Delphi (-Mdelphi or {$mode delphi}) or ObjFPC  
> (-Mobjfpc
> JM > or {$mode objfpc}) syntax modes.
> The funny thing is, that I have that directive in all my sources,
> indirectly  vi $I statement. I wonder if I have to give a full
> path name there?

If the compiler cannot find an include file, it will terminate with an  

> Will try that out tonight.

These directives are global and must appear near the top (before the  
"uses" statement and any declarations). In some older FPC versions,  
this was not checked very strictly. Enable warnings (-vw) and the  
compiler will print a warning when it encounters a global directive in  
a wrong place:

tt.pp(9,2) Warning: Misplaced global compiler switch


More information about the fpc-pascal mailing list