On 30 Mar 2010, at 16:47, lists.fpc-pas...@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
error.
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
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal