Hello Peter,
I have the main program file program.pas, it uses a few units unit1.pas, unit2.pas, ... After the compilation process is finished, file program.o contains unresolved links to the functions init_Unit1, init_Unit2, ...
PNL> gp will create each of the .o files for each unit, it PNL> unit1.o, unit2.o, program.o PNL> unit1.o will include the init_Unit1 function. PNL> You then need to link them all together.
Well, this is the problem: unit1.o doesn't contain the function init_Unit1. Therefore unresolved link to init_Unit1 in program.o cannot be resolved. This is the difference from program.o compiled with "arm-elf-gpc --autobuild ..." command line. Program.o compiled in such a fashion doesn't contain unresolved link to init_Unit1. The file program.o compiled with "gp PC=arm-elf-gpc ... " does contain the link to init_Unit1 that cannot be resolved. In the both cases the same arm-elf-gpc compiler is used.
Regards, Igor Marnat mailto:marny@rambler.ru