I downloaded and compiled gnu pascal and tried to compile prepmx, to see if this could be used straight forward. Unfortunately, there are some errors which seem to have almost all to do with string handling

s[0] := ...  -> strings.pas:46: error: constant out of range

and lots of warnings

files.pas:125: warning: missing string capacity -- assuming 255
thus no problem but waste of memory

and warnings of the type

files.pas:68: error: function call as a statement -- value is ignored
files.pas:69: warning: assignment: typed const misused as initialized variable


Is there a simple way to circumvent these problems with incompatible pascal dialects? (I presume, that's the problem here, and its a long time ago that I've been using pascal...)

bernhard


On Oct 18, 2004, at 12:02 PM, maurizio codogno wrote:

Dirk:

It is only a question of time, see
  http://www.freepascal.org/fpcmac.html
before fpc runs on a Mac, and then the last remaining reason for
providing C source will disappear.

Well, I'd be a bit wary, unless someone would be so kind to provide binaries for the major distributions. After all, downloading at least 25 MB for the distribution of Free Pascal just for a single compilation could be a bit too much, if somebody does not program in Pascal.

I managed to compile the C sources (on CygWin, so it should be
quite portable!) with the command

gcc -o prepmx *.c

after getting p2c.h and either placing it to /usr/include/p2c/p2c.h
or leaving it in the directory and modifying all C sources: the line
#include <p2c/p2c.h>
near the beginning of each file should become
#include "p2c.h"

I am including p2c.h (renamed to p2c.h.txt so that it should be
propagated by the server) for the brave people.

ciao, .mau.


<p2c.h.txt>_______________________________________________ TeX-music mailing list [EMAIL PROTECTED] http://icking-music-archive.org/mailman/listinfo/tex-music


Bernhard Lang                           | Physical Chemistry Departement, Sciences II
21, Avenue du Denantou          | University of Geneva; 30, Quai Ernest Ansermet
CH-1006 Lausanne, Suisse        | CH-1211 Geneva 4, Switzerland
TEL/FAX: +41(0)21 601 3657      | TEL +41(0)22 379-6535, FAX -6518
                                bernhard.lang at gmx.ch

_______________________________________________
TeX-music mailing list
[EMAIL PROTECTED]
http://icking-music-archive.org/mailman/listinfo/tex-music

Reply via email to