Hello,
I just compiled GPC on a dual opteron machine for a friend and it works fine. However my friend wants to use his old sources which use the units crt and dos. These are not included in this installation, while they were there in a earlier windows version he used to use. Can anybody tell me how to get these units up and running?
Thanks in advance
Joost van Lingen Theoretical Chemistry Group Utrecht University The Netherlands
J.N.J. van Lingen wrote:
I just compiled GPC on a dual opteron machine for a friend and it works fine. However my friend wants to use his old sources which use the units crt and dos. These are not included in this installation, while they were there in a earlier windows version he used to use. Can anybody tell me how to get these units up and running?
These units should be included in all distributions (source and binary). Which one did you use and where did you get it from?
If unsure if they're really installed, run
gpc --print-file-name=units/crt.pas
If it says just units/crt.pas, it's not installed. If it's installed, it should print the full path.
Frank
Thanks for your reply Frank,
I took the source file "gpc-20050331.tar.bz2" from http://www.g-n-u.de/gpc/
gpc --print-file-name=units/crt.pas gives the following:
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/3.4.3/units/crt.pas
So I assume it is installed. Then another question arises. Why can gpc not find the crt when I put in the following line of code:
uses crt;
Is the syntax wrong or ..... Since I am not an expert in pascal I just copied this line from one of my friends sources and it worked fine under devpascal/gnupascal environment.
Thanks Joost van Lingen
========================================= Drs. J.N.J. van Lingen Theoretical Chemistry Group, Debye Institute, Utrecht University Padualaan 8, 3584 CH Utrecht, The Netherlands Phone +31-30-253-4143 Fax +31-30-253 7504 E-mail j.n.j.vanlingen@chem.uu.nl ==========================================
-----Original Message----- From: gpc-owner@gnu.de [mailto:gpc-owner@gnu.de] On Behalf Of Frank Heckenbach Sent: woensdag 27 juli 2005 19:10 To: gpc@gnu.de Subject: Re: installation if units DOS and CRT
J.N.J. van Lingen wrote:
I just compiled GPC on a dual opteron machine for a friend and it works fine. However my friend wants to use his old sources which use the units crt and dos. These are not included in this installation, while they were there in a earlier windows version he used to use. Can anybody tell me how to get these units up and running?
These units should be included in all distributions (source and binary). Which one did you use and where did you get it from?
If unsure if they're really installed, run
gpc --print-file-name=units/crt.pas
If it says just units/crt.pas, it's not installed. If it's installed, it should print the full path.
Frank
J.N.J. van Lingen wrote:
I took the source file "gpc-20050331.tar.bz2" from http://www.g-n-u.de/gpc/
gpc --print-file-name=units/crt.pas gives the following:
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/3.4.3/units/crt.pas
So I assume it is installed. Then another question arises. Why can gpc not find the crt when I put in the following line of code:
uses crt;
Is the syntax wrong or ..... Since I am not an expert in pascal I just copied this line from one of my friends sources and it worked fine under devpascal/gnupascal environment.
You probably need the option --automake to tell GPC to compile units used.
This shows again the value of posting complete information such as the actual error message initially, and not jumping to premeture conclusions ("not included in this installation").
Frank