Linking with C
russ at ashlandhome.net
Thu Nov 16 04:54:43 CET 2000
On Thu, 16 Nov 2000, Nic Webb wrote:
> Someone suggested that I install the newest alpha version... So I
> downloaded it and tried it out. Recompiling gcc turned out to be an even
> bigger problem, I've been getting very strange errors ...
The safest way is to start with a clean tar.gz of gcc. Use the cookbook
routine in the FAQ.
Before you use the newly upgraded gpc, carefully delete any .o and .gpi
files from the old units. (check the units directory). Do not know if the
problem is "automake" or "ld", but apparently the file dates of the .o and
.gpi files are not checked against the coresponding .pas files, so if
there were any changes you will get some very strange error messages.
> I don't see how rebuilding gcc can know that the pascal files are in the p
> directory off of the gcc source dir.
configure looks in all the directories in gcc*/gcc/ for a file called
"Make-lang.in". If it finds it, it looks in there for the name of the
language it can build. Thus the pascal files are in p, the fortran files
are in f, etc.
More information about the Gpc