JP: thanks. I added that line to the Include Files directory substituting 2.6.2 and tried again to compile testapp.pas from the examples directory but I'm still getting Compile failed[/b with Total errors of 2. No indication what the errors are.
That's strange. The compiler message windows (F12) that should appear during compilation should at least give you an indication of what is wrong exactly.
FWIW:
If you select menu->options->compiler... and select the verbose tab, you can 'tick' several options.
If you 'checkmark' the All option then when you compile a file/project Free Pascal will show you all the files it is trying to locate, show all warnings, hints etc. -> that is the best way to locate Free Pascal and/or toolchain related errors.
It adds a fair amount of time to compilation, and produces a lot of output, but it is very helpful in case you are trying to solve a compilation related issue (besides the obvious errors located in source-code).
I have mode as Normal and targetprocessor as 808386.
Just for the record: it does not matter much for/under which mode you compile, you just have to make sure you configure all modes with similar using paths. Details of the chosen options can differ to reflect the chosen mode. E.g. in debug mode it is common to add debug information and/or put range checking on. Or as another example use paths to units compiled with debug information included.
One point: when I put entries into the Directories options and then Save what file are these changes written to? The fp.ini in my Home directory doesn't show any difference.
As explained by JP. Your comple related settings are located inside fp.cfg.
The fp.ini file just 'contains' all the desktop information like windows positions, last opened files etc.
And also to just make sure:
The missing include file that you experience is/was an oversight. e.g. it is a bug that is already solved in FPC 3.x. Normally (as end-user) you should usually have no need to set an include path to FPC sources.
So as an alternative to JP's solution (adding the include path) you can also 'follow' the solution presented by FPC 3.x and download the platform.inc file inside and place it in the directory of the example that you are trying to compile.
The platform.inc file can be downloaded
here.