New user on gpc but 12 years with Tubo Pascal

Khimenko Victor gpc at khim.sch57.msk.ru
Wed Jul 12 22:17:49 CEST 2000


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




More information about the Gpc mailing list