Hi
Is someone can help me?!!! I really need to use a pascal compiler and I can't run it correctly.
I manage to install a pascal compiler with "gpc-19990118-2rh6_i386(1).rpm... But, at first, when I did the command: $gpc -o test test.p, it says ld : cannot open crt1.o : no file or directory of this type. So, I tried to locate this file, and the only solution I find to go on was to copy it where I want to compile. It was the same for 'begincrt.o' and 'crti.o'. After this, the message was : ld : cannot find -lm. So, I create a variable called LFLAGS to export the libraries: $ export LFLAGs="-L /usr/i586-glibc20-linux/lib" and with the line: $ gpc -o test $LFLAGS test.p 'test' is created but when I run it, the following message appear: 'segmentation fault' What does it mean?
thanks a lot in advance for your help,
I guess some people use this so explain how you do to run it correctly, it's really important for me.
Nathalie
Hi, Nathalie!
you wrote:
I manage to install a pascal compiler with "gpc-19990118-2rh6_i386(1).rpm... But, at first, when I did the command: $gpc -o test test.p, it says ld : cannot open crt1.o : no file or directory of this type. [...]
It seems as if some important libraries were missing on your system. They obviously were not in gpc-19990118-2rh6_i386(1).rpm.
Please install the C compiler for your system from a file of the type gcc-something-XrhY_i386(1).rpm. This package will either contain the needed libraries or have a dependency that will tell you what else has to be installed. (The same dependency should then be added to gpc-19990118-2rh6_i386(1).rpm.)
Hope this helps,
Peter