Later I will unsubscribe from this list. The project we had in mind will
not continue yet. It will later, so perhaps you will see me back in this
list. I appreciate the help, and I wish you all the best.
Greetings,
Menno Schaap
I'm using the example I saw in the GNU pascal documentation on how to link
pascal with C (calling a C function from pascal). The example uses
"asmname", which I know very little about.
When I compile the .pas file, I get a slew of errors saying:
comma missing after identifier `Asmname'
parse error before character constant
(that shows up once for every line I have asmname on...
when I add the --automake option to the gpc command line, it also tells me
that it can't execute my program (no …
[View More]such file or directory). I can't
compile without automake because for some reason gpc isn't able to find
any valid units without it (omitting it gives me "module/unit interface
`Gpc' could not be imported").
can anyone help out?
-Nic
[View Less]
Hi Phil and all.
On Tue, Nov 14, 2000 at 08:57:28AM -0800, Phil Nelson wrote:
> >Well, I think I have to care on my own for the truth
> >about this topic and ask the FSF for details.
> I happen to be the author of gdbm. Jason Downs
> (downsj(a)downsj.com) is the current maintainer.
> He hasn't done much since 1999, but here is the
> last ChangeLog entry:
[...]
> Now, it is certainly true that Berkeley DB has more features and works
> cross platform better than …
[View More]gdbm. There is no question there. But
> there is still a maintainer for gdbm and there has been a recent
> release. (May 1999.)
Thank you Phil.
So I am sorry for this topic. I trusted the documentaton of my
distribution.
Ok, I maintain Gnu DBM - Unit furthermore.
Eike
[View Less]
I'm trying to install gpc 2.0 (20001113) on my Sparc 2 running SunOS 4.1.4
and gcc 2.95.2.
Gcc installed with no trouble at all, but during the configure
process, I run into a problem. Here's the command I used:
zappa:~/source/p% /usr3/source/gcc-2.95.2/configure --enable-languages=pascal
I get to the "Configuring gcc..." section, and the process dies with
the following message:
checking assembler alignment features...
checking assembler subsection support...
checking assembler …
[View More]instructions...
/usr3/source/gcc-2.95.2/gcc/configure: test: argument expected
Configure in /usr3/source/p/gcc failed, exiting.
Has anyone seen this particular problem? The GCC is the version from
the gpc site, and it configured, compiled and installed with no problem
at all.
Thanks!
--
======================================================================
Joe Hartley - UNIX/network Consultant - jh(a)brainiac.com
12 Emma G Lane, Narragansett, RI 02882 - vox 401.782.9042
Without deviation from the norm, "progress" is not possible. - FZappa
[View Less]
The GPC reference claims that the 3rd parameter of Val is optional:
: procedure Val (const Source: String; var x: INTEGER OR REAL);
: or
: procedure Val (const Source: String; var x: INTEGER OR REAL;
: var ErrorCode: Integer);
However, that's not the case in GPC (neither in BP from which the
Val procedure comes). Thanks to Nicola Girardi for pointing out this
discrepancy.
Though there are cases where one might want to ignore the 3rd
parameter (such as if it …
[View More]was checked before calling Val that the
string consists only of digits, or at least has a starting digit and
one is willing to ignore trailing "garbage"), but IMHO they're rare
enough that they don't justify another syntax extension.
So I suggest to "fix" the documentation by removing the first part.
-- Of course, I could've just done that, but perhaps someone
disagrees...
Also, maybe someone interested in writing/maintaining documentation
might want to take this as a start (and perhaps write some words
about Val in the reference while they're at it :-)...
Minor note: The name of the parameter should by `ErrorPosition'
rather than `ErrorCode' (the BP documentation also calls it `Code',
but we shouldn't copy their mistakes, it's not a code, just a
position)...
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]
I've got two programs: hello.pas, and uhello.c ...
hello.pas defines a procedure called hello which simply writes "hello" to
STDOUT...
I compiled it and got the .o file, and made a header file for it defining:
extern void Hello;
then i use the .h file in uhello.c:
#include "hello.h"
and try a call to Hello in the main block of uhello.c...
The program works without errors, but the Hello procedure isn't writing
anything to the screen like it should... The Documentation pointed out
that …
[View More]gpc will compile the procedure name with the first letter being
capitalized, which is why I did the external declaration for Hello...
Also, like in the example I saw, thge pascal file defined:
procedure hello; asmname 'hello';
before actually defining the procedure with a being and
end; statement... That's what I did.. Does the example mean that I
should put asmname on the actual procedure declaration, or should it be
separate like that?
any ideas as to why the procedure isn't getting called?
-Nic
[View Less]
HI Eike!
Habe gerade mal die Warnings-Problematik getestet:
in meinem Makefile lösen die Compiler-Switch-Kombination -Wall und -O
die Warnigs aus. Wenn ich -O wegnehme bleibt nur noch
>pglobtls.pas:247: warning: excess elements in array initializer after
>'Tclongopts'
>
aus meiner Unit übrig. Hierbei handelt es um ein echtes Warning, da ich
bestimmt eine Array-Element weniger habe als der Array-Initializer. Das
bekomme ich aber heraus, wenn ich das Array bearbeite.
Habe mir eben …
[View More]mal deine GTKUNIT heruntergeladen und werde mir diese mal
ansehen.
Thorsten
[View Less]
Hi!
I do not maintain the unit "dbatgdbm" no longer since
Gnu-DBM is no more maintained by the FSF (for years, I
didn't know).
There is a small gtkunit available. GTK+ is "The Gimp
Toolkit" and its a toolkit for writing X-Applications.
The unit is based on libgtk1.2 and is available via
anonymous ftp from:
ftp://agnes.dida.physik.uni-essen.de/~lange/gtkunit-20001112.tar.gz
where "20001112" is replaced by the actual date (YearMonthDay).
The unit can't do more than shown in the examples (…
[View More]taken from the
libgtk1.2-tutorial).
Eike
[View Less]
Hello,
There is a small bug in the implementation of array's.
See the following example program:
PROGRAM test(input, output);
TYPE
RealVectorT(b,e:integer) =ARRAY[b..e] OF Real;
RealMatrixT(br,er,bc,ec:integer) =ARRAY[br..er] OF RealVectorT(bc,ec);
VAR x:RealMatrixT(1,5,1,5);
BEGIN
x[1,1]:=0;
{ error: test.p: In function `pascal_main_program':
test.p:10: subscripted object is not an array or string }
x[1][1]:=0;
{ this is O.K. }
END.
Both …
[View More]implementations of addressing an array element x[1,1] and x[1][1]
should be equivalent. In the first case the compiler does not interpret x
as an array. The latter version is correctly interpreted and executed.
I have used the relase 2.95.2 19991024 of gpc.
With kind regards,
Rudy Moddemeijer
---------------------------------------------------------------------
| R. Moddemeijer | Department of Computing Science |
| | University of Groningen |
| Phone +31/50 - 363 3940 | Blauwborgje 3 room IWI 228 |
| Telefax +31/50 - 363 3800 | P.O. Box 800 |
| e-Mail rudy(a)cs.rug.nl | NL-9700 AV Groningen |
| r.moddemeijer(a)cs.rug.nl | The Netherlands |
| | |
---------------------------------------------------------------------
[View Less]