Hi, all
I'm doing a new install of gpc with grx2.45 on a Win2000 machine.
(1) The recent change in the compiler, from recognizing "integer(32)" to
requiring "integer attribute (size=32)", means I needed to change line 59 of the
grx.pas file accordingly. No biggie, just info.
(2) My computer uses 1024 x 768 pixels in 16-bit color when running windoze
programs, but the c-compiled modetest demo won't go higher than 1) 1024 x 768 x
1-bit, or 2) 640 x 400 x 8-bit. When I run the Pascal …
[View More]modetest.pas, it exits
with error 1: GrSetMode: could not find suitable video driver.
Am I missing some critical files? No windoze programs have complained about my
video.
thanks,
Toby
[View Less]
Hello,
now it is planned to integrate g95 in gcc. So my question:
Is it planned to integrate gpc in gcc and when?
Greats
Andi
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
I recently came about the issue of overriding non-virtual methods by
virtual ones. GPC currently allows this, but it may be slightly
confusing. BP allows it as well, so we shouldn't forbid it. But
should we warn? (Always or unless `--borland-pascal' was given?)
type
a = object
procedure p;
end;
b = object (a)
procedure p; virtual;
end;
Frank
--
Frank Heckenbach, frank(a)g-n-u.de, http://fjf.gnu.de/, 7977168E
GPC To-Do list, latest features, fixed bugs:
http://www.gnu-pascal.…
[View More]de/todo.html
GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707
[View Less]
Hi, Frank!
-------------------------------------------------------
program mirsad16(output);
function testproc (n: LongCard): String(64);
begin
n := n;
return 'OK';
end;
begin
WriteLN (testproc (42));
end.
-------------------------------------------------------
bash-2.05b$ gpc -Wall mirsad16.pas
mirsad16.pas:4: warning: missing string capacity -- assuming 255
mirsad16.pas:4: parse error before `('
I couldn't find in reference docs whether this is actually banned by
specification, or …
[View More]is it a bug in parser.
Thanks,
Mirsad
--
"I have a dream!" -- Martin Luther King Jr.
"You can't hold someone down ... without staying down with him."
-- Booker T. Washington
"... one thing is for sure about the rat race:
Even if you win, you're still a rat." -- S. Baars
[View Less]
I am a delphi programmer. Nearly all Delphi code relies on the fields of an
object being set to zero automatically. If gpc wishes to be compatible with
Delphi it must have the option to do the same.
In Delphi you cannot use an abject without calling its constructor so the
initialisation of virtual methods is always done.
Theo Carr-Brion
-----Original Message-----
From: Jason Burgon [mailto:gvision@ntlworld.com]
Sent: 04 June 2003 08:58
To: gpc(a)gnu.de
Subject: Re: Overriding non-virtual …
[View More]methods by
Prof A Olowofoyeku (The African Chief) wrote:
> PS: I know that, under BP and Delphi, a call to the constructor
> automatically zeroes out all the object's fields as appropriate (e.g.,
> pointers are set to Nil, numbers are set to zero, and strings are set
> to empty).
This is not the case with BP or Delphi "object"s. It is Turbo Vision's
TObject.Init (a constructor) that provides this functionality; it is not an
inherent feature of an "object". In Delphi, all "class"es must be a
descendant of TObject (a special class known to the compiler), and this
also probably does field zeroing in Delphi classes.
Jay
Jason Burgon. Author of Graphic Vision
Version 2.21 available from:
http://homepage.ntlworld.com/gvision
[View Less]
For now I'm using the libm routines, since I'm not convinced that
the alternatives are really better. For complex numbers, I'm adding
the following, rather simple, routines. If Emil (or someone else)
wants to provide more optimized/numerically stable versions, let me
know.
function Complex_ArcSin (z: Complex): Complex;
var t: Complex;
begin
t := Ln (Cmplx (-Im (z), Re (z)) + SqRt (1 - Sqr (z)));
Complex_ArcSin := Cmplx (Im (t), -Re (t))
end;
function Complex_ArcCos (z: Complex): Complex;
…
[View More]var t: Complex;
begin
t := Ln (z + SqRt (Sqr (z) - 1));
Complex_ArcCos := Cmplx (Im (t), -Re (t))
end;
Frank
--
Frank Heckenbach, frank(a)g-n-u.de, http://fjf.gnu.de/, 7977168E
GPC To-Do list, latest features, fixed bugs:
http://www.gnu-pascal.de/todo.html
GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707
[View Less]
I installed gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz under my previous
Linux (Red Hat 8.) and it worked without any problems.
I did the same under Red Hat 9. When I tried to compile a program 'gpc'
complained:
gpc: installation problem, cannot exec `gpcpp': No such file or directory
I put then in /usr/local/bin a symbolic link:
gpcpp ->/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/gpcpp
Now I got the message:
gpc: installation problem, cannot exec `gpc1': No such file or …
[View More]directory
I added the link:
gpc1 -> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/gpc1
Now I got a series of messages from the linker; some of them:
---------------------------------------------
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgpc.a(rts.o)(.text+0x5d6):
In function `_p_LocaleUpCase':
/home/frank/gpc/gcc-2.95.3/gcc/p/rts/rts.c:838: undefined reference to
`__ctype_toupper'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgpc.a(rts.o)(.text+0x5ea):
In function `_p_LocaleLoCase':
/home/frank/gpc/gcc-2.95.3/gcc/p/rts/rts.c:846: undefined reference to
`__ctype_tolower'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgpc.a(rts.o)(.text+0x5fe):
In function `_p_IsUpCase':
/home/frank/gpc/gcc-2.95.3/gcc/p/rts/rts.c:851: undefined reference to
`__ctype_b'
(... more deleted ...)
-----------------------------------------------
Any idea what the problem is? I am not a Linux expert and would
appreciate simple advice :-). Please send a copy of the answer to my
address because I am not a subscriber to this list.
Thanks!
-- Tomasz Kowaltowski
[View Less]
Hello
I have DLed the newest version listed and the Dec2002 Developer Tools
from Apple and have proceeded to work on a more complex project.
However, I am unable to compile the source - it gives me this error:
> alan.pas: In procedure `f_b':
> alan.pas:577: internal error: Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.gnu-pascal.de/todo.html> for instructions.
>
Any ideas?
If anyone cares to …
[View More]look into it I have attached the source, the
preprocessed source and the data file needed to run it.
Regards,
Boris
[View Less]
Hi, dear All. I have made exhaustive (at least, hope so) search in the documentation and mail
list archives but found only that "GPC will align variables according
to maximum performance", but how exactly? On what boundary will be
aligned Integer, Boolean, Longint, Word, etc. On what boundary will be
aligned string, record, array, their elements and are there any differences between default
alignment of variable without record and variable as record field? And, if
possible, I need information …
[View More]for the other platforms. I understand that I
can make experiments to find it out but it seems to me it should
appear in one or in other place (GPS manuals or mailing lists).
Thanx, dear All.
Best regards,
Ingvar mailto:marny@rambler.ru
[View Less]
As you probably know, GPC currently converts all identifiers to
first letter upper-case/rest lower-case. Since this is often not
nice, I plan to change this. This would affect at least the
following things:
- error messages
- the file name chosen with `--transparent-file-names' (makes a
difference only on case-sensitive file systems, i.e. not
Dos/Windows); is this ok (to those who use this option)?
- the file name prompt with external files without binding
While I'm at it, it might be …
[View More]easy to add a warning if an identifier
is used with varying case (something like `var Foo: Integer; [...]
WriteLn (FOO)').
- Any ideas for the name of the option? (`-Widentifier-case'?)
- Default? (I suppose off, though I think I myself would prefer on.)
- Should it work across units/modules? Or should it be a tri-state
option (never/current file/global)?
Frank
--
Frank Heckenbach, frank(a)g-n-u.de, http://fjf.gnu.de/, 7977168E
GPC To-Do list, latest features, fixed bugs:
http://www.gnu-pascal.de/todo.html
GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707
[View Less]