Hello,
I would to work with Gnu Pascal on Linux Mandrake 7.02
I have downloaded several files :
gpc-19990118-1.i386-pc-linux-gnu.rpm gpc-19990118.i586-pc-linux-gnulibc1.tar.gz gpc-19990118.tar.gz gpc-2.0.tar.gz gpc-extras-19990118-1.i386-pc-linux-gnu.rpm install-gpc-binary
Can somebody say to me which file is the better to install ? (i know how to install them)
Can somebody say to me what environment variables to define to access to the units because i have installes GPC on another compiler but i coudn't compile programs with the crt or other included units ?
Thank you
Jean-Philippe
Hello!
Jean-Philippe Combe wrote:
gpc-19990118-1.i386-pc-linux-gnu.rpm gpc-19990118.i586-pc-linux-gnulibc1.tar.gz gpc-19990118.tar.gz gpc-2.0.tar.gz gpc-extras-19990118-1.i386-pc-linux-gnu.rpm install-gpc-binary
Can somebody say to me which file is the better to install ? (i know how to install them)
None of the above. ;-) Instead, get the most recent source distribution from the `alpha' subdirectory plus the source of gcc-2.95.x and follow the instructions in the INSTALL file enclosed in the GPC source archive.
Can somebody say to me what environment variables to define to access to the units because i have installes GPC on another compiler but i coudn't compile programs with the crt or other included units ?
When everything is installed correctly, you can simply type `uses CRT' and it will work. Don't forget the `--automake' option to the call to `gpc'.
Hope this helps,
Peter
Hello,
gcc-2.95.x is the actual c compiler on my computer. Do i need to reinstall it anyway ? Why ?
Thanks Jean-Philippe
----------------------- Le mer, 12 jui 2000, vous avez écrit :
Hello!
Jean-Philippe Combe wrote:
gpc-19990118-1.i386-pc-linux-gnu.rpm gpc-19990118.i586-pc-linux-gnulibc1.tar.gz gpc-19990118.tar.gz gpc-2.0.tar.gz gpc-extras-19990118-1.i386-pc-linux-gnu.rpm install-gpc-binary
Can somebody say to me which file is the better to install ? (i know how to install them)
None of the above. ;-) Instead, get the most recent source distribution from the `alpha' subdirectory plus the source of gcc-2.95.x and follow the instructions in the INSTALL file enclosed in the GPC source archive.
Can somebody say to me what environment variables to define to access to the units because i have installes GPC on another compiler but i coudn't compile programs with the crt or other included units ?
When everything is installed correctly, you can simply type `uses CRT' and it will work. Don't forget the `--automake' option to the call to `gpc'.
Hope this helps,
Peter
-- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-20000707 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net
Hi
You do not need to reinstall gcc, but you need its source for compiling gpc. When compiling you may select to compile only pascal compiler, however you may do "full" install as well. This will not harm your gcc, besides you can make ".old" copy of your current gcc or move it out of the way just in case (all of this was in INSTALL if I remember correctly). If you are saving copy of gcc don't forget /usr/lib/gcc-version directory. If you did not recompile kernel it may be overwritten (if you did you shouldn't worry). This shouldn't do any harm though, after all this is the same source code.
George
On Wed, 12 Jul 2000, Jean-Philippe Combe wrote:
Hello,
gcc-2.95.x is the actual c compiler on my computer. Do i need to reinstall it anyway ? Why ?
Thanks Jean-Philippe
Le mer, 12 jui 2000, vous avez écrit :
Hello!
Jean-Philippe Combe wrote:
gpc-19990118-1.i386-pc-linux-gnu.rpm gpc-19990118.i586-pc-linux-gnulibc1.tar.gz gpc-19990118.tar.gz gpc-2.0.tar.gz gpc-extras-19990118-1.i386-pc-linux-gnu.rpm install-gpc-binary
Can somebody say to me which file is the better to install ? (i know how to install them)
None of the above. ;-) Instead, get the most recent source distribution from the `alpha' subdirectory plus the source of gcc-2.95.x and follow the instructions in the INSTALL file enclosed in the GPC source archive.
Can somebody say to me what environment variables to define to access to the units because i have installes GPC on another compiler but i coudn't compile programs with the crt or other included units ?
When everything is installed correctly, you can simply type `uses CRT' and it will work. Don't forget the `--automake' option to the call to `gpc'.
Hope this helps,
Peter
-- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-20000707 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net
Jean-Philippe Combe wrote:
gcc-2.95.x is the actual c compiler on my computer. Do i need to reinstall it anyway ?
Not really, but you need its source code.
Why ?
Because GPC shares its backend with GCC, so if you want to compile GPC you need, besides the source of the GPC frontend itself, the source of the GCC backend.
Hope this helps,
Peter
Re Hello,
I have done exactly what you said below and in the gpc text file but when i compile with
/usr/local/bin/gpc --automake test.pas -o test the compiler say : gpc : installation problem, cannot exec 'cpp'; no file or directory ...
so i have found a cpp in ~/gpc-buils/gcc and copied it into my ~/pascal directory and then compile again.
That time, i have many errors like /usr/include/string.h:33: stddef.h : no file or directory ... ............................................stdarg.h........................................ and so on
What happend ? Was i wrong somewhere during installation ?
Thank you very much to help me Jean-Philippe
------------------------------------------------------- Le mer, 12 jui 2000, vous avez écrit :
Hello!
Jean-Philippe Combe wrote:
gpc-19990118-1.i386-pc-linux-gnu.rpm gpc-19990118.i586-pc-linux-gnulibc1.tar.gz gpc-19990118.tar.gz gpc-2.0.tar.gz gpc-extras-19990118-1.i386-pc-linux-gnu.rpm install-gpc-binary
Can somebody say to me which file is the better to install ? (i know how to install them)
None of the above. ;-) Instead, get the most recent source distribution from the `alpha' subdirectory plus the source of gcc-2.95.x and follow the instructions in the INSTALL file enclosed in the GPC source archive.
Can somebody say to me what environment variables to define to access to the units because i have installes GPC on another compiler but i coudn't compile programs with the crt or other included units ?
When everything is installed correctly, you can simply type `uses CRT' and it will work. Don't forget the `--automake' option to the call to `gpc'.
Hope this helps,
Peter
-- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-20000707 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net
Le 12 Jul 2000, à 21:43, Jean-Philippe Combe a écrit:
I have done exactly what you said below and in the gpc text file but when i compile with
/usr/local/bin/gpc --automake test.pas -o test the compiler say : gpc : installation problem, cannot exec 'cpp'; no file or directory ...
Did you try : "gpc test.pas -o test.exe -lgrx20 --autobuild" ? Hope this helps. -- "Couperin"
12-Jul-00 21:43 you wrote:
Re Hello,
I have done exactly what you said below and in the gpc text file but when i compile with
/usr/local/bin/gpc --automake test.pas -o test the compiler say : gpc : installation problem, cannot exec 'cpp'; no file or directory ...
so i have found a cpp in ~/gpc-buils/gcc and copied it into my ~/pascal directory and then compile again.
That time, i have many errors like /usr/include/string.h:33: stddef.h : no file or directory ... ............................................stdarg.h........................................ and so on
What happend ? Was i wrong somewhere during installation ?
Yes and no. Looks like you installed only Pascal's backend while trying to use C one as well (gpc is trying to compile C source files when needed - perhaps you tried to use CRT, right?). Since you installed everything in /usr/local (and not in /usr) existing C backend files can not be found. Either build and install C backend as well or rebuild with prefix=/usr ...
Alternative way is to NOT use --automake and compile needed C files with your standard gcc compiler manually.
Thank you very much to help me Jean-Philippe
Le mer, 12 jui 2000, vous avez ц╘crit :
Hello!
Jean-Philippe Combe wrote:
gpc-19990118-1.i386-pc-linux-gnu.rpm gpc-19990118.i586-pc-linux-gnulibc1.tar.gz gpc-19990118.tar.gz gpc-2.0.tar.gz gpc-extras-19990118-1.i386-pc-linux-gnu.rpm install-gpc-binary
Can somebody say to me which file is the better to install ? (i know how to install them)
None of the above. ;-) Instead, get the most recent source distribution from the `alpha' subdirectory plus the source of gcc-2.95.x and follow the instructions in the INSTALL file enclosed in the GPC source archive.
Can somebody say to me what environment variables to define to access to the units because i have installes GPC on another compiler but i coudn't compile programs with the crt or other included units ?
When everything is installed correctly, you can simply type `uses CRT' and it will work. Don't forget the `--automake' option to the call to `gpc'.
Hope this helps,
Peter
-- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-20000707 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net