--- On Mon, 7/16/12, Prof A Olowofoyeku (The African Chief) chief@greatchief.plus.com wrote:
On 14 Jul 2012 at 23:08, Jay Michael wrote:
Where should I find the .gpi files
for supplied units (like
unit GPC)?
It is supplied as source code.
I should have asked, Where does the compiler look for .gpi files if they aren't in the current default directory?
Are the .gpi files for all supplied/standard units supposed to be in "GPC/units"? Is each .gpi file supposed to be in the same directory as the source file? (So some will be in "GPC/lib/gcc/mingw32/3.4.5/units")
I found the section in GPC/gnu_pascal_readme.pdf that talked about, on first using the IDE, building "GPC/units/build_units.pas". I'd rather not use the IDE.
If I want to compile "build_units.pas" from the command line, what will cause "gpc" to put each .gpi file in the same directory as the corresponding source file? How will "gpc" even find the source files that are not in my current default directory?
I've been running gpc by specifying the path to the executable (rather than by updating my environment PATH). I found that even when I specified enough switches to get it to look somewhere else for include files and .gpi files, all new .gpi and .o files were deposited in my current default directory. (That happened to be exactly what I wanted -- I didn't want to foul the distribution directories with my experiments.)
I've explored the various "-print" options to gpc (like "-print-search-dirs"). Even if I run GPC/setgpc.bat, I can't get gpc to admit it's going to search GPC/units.