In our previous episode, Jonas Maebe said: > > Using OS X 10.6.1, FPC 2.2.4, Xcode 3.2 on intel iMac. > > > > The program and units all have {$I Directives.inc} at top of each > > file. Compile lists many errors like: > > > > 6: Mode switch "OBJFPC" not allowed here > > > > Any hints? > > This is unrelated to Mac OS X. > > A modeswitch must occur before any code is parsed. In practice this > means right above or below the "unit" statement. Older versions of FPC > (2.2.0?) were more lenient in checking this.
(I talked to Paul on IRC, and it was multiple $mode directives that caused the problem. Afaik that limitation was added at that same time too) _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal