Profeta Mickael wrote:
I installed binary of gpc on my linux/pentium computer. When I manage to compile a pascal source, I cannot execute the file a.out created, I always got the same answer: segmentation fault!
Which binary did you use? On agnes, there are different ones for libc5 and glibc. If you got the wrong one for your system (if it's a new installation, your system it most likely glibc), it may not work. There is also a little incompatibility between some distributions in their glibc versions -- which distribution do you use?
If nothing else helps, you can always get the sources (GCC and GPC), and compile GPC yourself. Under Linux, this is not very difficult.
On the other hand, to compile demos programs I must be root?
If you try to compile them in the demos directory, and this is owned by root, then yes. But if you compile them while you are in your home directory (either by copying them there, or by giving the full path to the source), you don't have to be root. You can also use the
option `--executable-path=$HOME/bin' (say) to tell GPC to create the exectuables a bin directory below your home directory, and similarly e.g. `--unit-destination-path=$HOME/objects' to tell it where to put compiled units. The directories must exist before calling GPC.
Frank