Done (thanks). Surprisingly upon compilation I get an error on the 2nd last line [error while linking]
writeln(namefile,'Total solutions: ' , Nsoluzioni);
I am just writing in namefile: Total solutions nnn
And an identical command is written before, without any problem.
namefile is output.txt
I think the location is irrelevant here, because the compiler did not issue the error. It is the linker. Probably you need to check other messages before or after this one.
To make sure you have a working environment, start a new project of type Program and only add writeln to the template Lazarus produced:
....
begin
Writeln('Hello World!');
end.
Change the target OS to Android, CPU to Arm, and Target processor to ARMV7A
If you try to compile, you'll see a similar error. When you check the messages, the linker was unable to find one of the files, named:
crtbegin_dynamic.o. This file comes with Android NDK. There are a few copies for each Android API version depending on the target processor.
To save you from needing to install the NDK, I'll make a guess and attach a zip file with the needed files. Expand the compressed file and point the test project to it using:
Compiler Options - Paths - Libraries
In the meantime I also installed on the Galaxy your suggested Terminal emulator. It seems to work but touch wood because the OS is not performing well in general, it was probably a mistake to switch to this non-native OS.
Great.
Note: when you are fed up of supporting just say that, I do not want to disturb you too much!
Don't worry about it.