I wish to port 250,000 lines of DEC Pascal code running on COMPAQ Alpha
under OpenVMS/X-Windows to under Linux/X-Windows on Intel (and on Alpha if
possible). I know that I will have some considerable problems with the non
standard parts of DEC Pascal but GNU Pascal seems to be getting better all
the time. The question I have is can I keep the same user interface, i.e.
direct X-Windows and MOTIF calls from the Pascal code, i.e. is there an
X-Windows/MOTIF binding for GNU Pascal. If the answer to …
[View More]this is yes please
tell me. If it is not please tell me how GNU Pascal programmers develop
GUI's.
[View Less]
Jawaad Ahmad wrote:
> Are you sure? With or without the
>
> USES Crt;
>
> statement, or the
>
> PROGRAM Hello (Input, Output);
>
> statement, it gives me the same error about -lgcc. [...]
Okay, so GPC is unable to find your GCC. That's a minor
incompatibility between a version of GPC and a version of GCC
that does not match exactly.
To work around, you can copy the GCC-related files (`cc1' etc.)
somewhere under /djgpp/lib/gcc-lib/... from GCC's …
[View More]directory to
GPC's one.
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-19990118
GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422
keys: ftp://ftp.gerwinski.de/pub/keys/ - AntiSpam: http://spam.abuse.net
[View Less]
Hello,
I know that probably it is not the best list to write about it,
but I know that most of GPC programmers use RHIDE, so I decided
to ask you. I use RHIDE on Linux successfully, but trying to install
it for my friend on RedHat 6.0 I encountered RTE at the first
attempt to start the editor. There was a message like 'segmentation fault,
unable to connect to a terminal' or something like that. Maybe it is a
known problem, maybe there is some work-around. My friend uses RIVA TNT
grafic card - …
[View More]maybe that is the problem ?
Adam Naumowicz
--------------------------------------
email: adamn(a)math.uwb.edu.pl
WWW : http://math.uwb.edu.pl/~adamn/
--------------------------------------
[View Less]
hi again,
this time it is because i tried to compile programs using
"uses Crt" outside Rhide (i use it as my favourite IDE)
this is the command line i typed (i found it somewhere in the FAQ):
girardi@ux(tty4)~/devel$ gpc -g --automake -o foo foo.pas
gpc: installation problem, cannot exec `cc1': No such file or directory
gpc1: gpc exited with status 1
/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/units/crt.pas:345: `/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/units/crtc.c' could not be compiled
gpc1: …
[View More]gpc exited with status 1
foo.pas:2: module `crt' could not be compiled
so, what's up?
my distrib. is Debian 2.1 (slink), and all dependencies are OK.
but there's still something wrong.
sincerely,
--
Nicola Girardi girardi(at)keycomm.it
Key fingerprint = CD 7D 57 C2 52 73 67 B5 13 48 AA 8C 3E 7F 13 DC
[View Less]
hi all, i'm going to start again programming under linux.
all i had done before this was some programs for DOS (i've been
using linux for just a year) with Borland Pascal.
now in linux i'd like to start programming again, but
there are some functions that i can't find, and that i can't
implement.
for example, i need something as "delay(milliseconds)" but
i can't find anything similar. ok, in C, i'd use "usleep()",
but what in Pascal?
and, for example, again, "textcolor and textbackground" ?
…
[View More]readkey? keypressed?
and how to use Svgalib instead os DOS' BGI ?
please help me ASAP.
thanks in advance.
--
Nicola Girardi girardi(at)keycomm.it
Key fingerprint = CD 7D 57 C2 52 73 67 B5 13 48 AA 8C 3E 7F 13 DC
[View Less]
I wrote:
> > > for example, i need something as "delay(milliseconds)" but
> > > i can't find anything similar. ok, in C, i'd use "usleep()",
> > > but what in Pascal?
> >
> > Program Foo;
> >
> > uses
> > Crt;
> >
> > begin
> > Delay ( 42 )
> > end.
>
> Sollte man aber nur eingeschränkt empfehlen, d.h. nur wenn man eh
> CRT benutzt. Nur wegen Delay CRT zu benutzen, ist weder in GPC noch
> in BP …
[View More]sehr sinnvoll (nur, daà BP keine einfache Alternative
> bietet)...
Oops, sorry, wrong language...
What I said is: This is only recommendable if you use CRT anyway.
It's not a good idea to use CRT just for Delay, neither in GPC nor
in BP. Just that BP does not offer any easy alternative, but GPC
does (Sleep and SleepMicroSeconds in the GPC unit).
Frank
--
Frank Heckenbach, frank(a)g-n-u.de, http://fjf.gnu.de/
GPC To-Do list, latest features, fixed bugs:
http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html
[View Less]
> > for example, i need something as "delay(milliseconds)" but
> > i can't find anything similar. ok, in C, i'd use "usleep()",
> > but what in Pascal?
>
> Program Foo;
>
> uses
> Crt;
>
> begin
> Delay ( 42 )
> end.
Sollte man aber nur eingeschränkt empfehlen, d.h. nur wenn man eh
CRT benutzt. Nur wegen Delay CRT zu benutzen, ist weder in GPC noch
in BP sehr sinnvoll (nur, daà BP keine einfache Alternative
bietet)...
Frank
--
Frank …
[View More]Heckenbach, frank(a)g-n-u.de, http://fjf.gnu.de/
GPC To-Do list, latest features, fixed bugs:
http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html
[View Less]
"S. Achterop IWI-120 3932" wrote:
> The question of course is, does this ring a bell?
Maybe... There is a known problem:
: IRIX and AIX work stations (and wherever else): initializers are not
: executed (GCC bug!)
This affects unit/module initializers, but it seems that the call to
_p_initfdr (which is called automatically for each file type
variable) is done in the same way, even in the main program.
As stated, this is actually a GCC problem. However, it is solved in
gcc-2.95 by using …
[View More]a utility called collect2 (at least according to
the docs -- I can't check it myself since I don't have access to a
system affected). The next version of GPC will work with gcc-2.95,
so perhaps this will already solve the problem.
To make sure it's really this bug, you can try the following code.
If it fails to write `foo', it's the bug...
unit foo;
interface
implementation
to begin do Writeln ('foo');
end.
program bar;
uses foo;
begin
end.
Frank
--
Frank Heckenbach, frank(a)g-n-u.de, http://fjf.gnu.de/
GPC To-Do list, latest features, fixed bugs:
http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html
[View Less]
To follow up upon the reset error I just reported, the command
gpc --help
yields:
GNU Pascal version 19980830, based on gcc-egcs-2.91.57 19980901 (egcs-1.1 release), compiled Sep 26 1998 13:44:06.
So maybe I should try a newer version?
Sietse