Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-10

compiling something does not work

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexandre Racine

Hi guys, I am new here so don't be too much hard on me :)

I am trying to compile this 1992 software msim.p from the FASTSLINK family. You can get it here... wget http://watson.hgen.pitt.edu/pub/fastslink/fastslink.tar.Z

I have attached the msim.p file.

So, am I doing something wrong? Is this an actual pascal file? Is 1992 too old? :) Thanks.

------------------------------------

$ fpc -Se20 msim.p
Free Pascal Compiler version 2.2.0 [2007/10/26] for x86_64
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling msim.p
msim.p(258,45) Error: Duplicate identifier "msim"
msim.p(364,27) Warning: Local variable "v" does not seem to be initialized
msim.p(706,2) Warning: unreachable code
msim.p(862,6) Warning: unreachable code
msim.p(1490,35) Error: Incompatible type for arg no. 2: Got "Constant String", expected "LongInt"
msim.p(1492,37) Error: Incompatible type for arg no. 2: Got "Constant String", expected "LongInt"
msim.p(1494,35) Error: Incompatible type for arg no. 2: Got "Constant String", expected "LongInt"
msim.p(1495,35) Error: Incompatible type for arg no. 2: Got "Constant String", expected "LongInt"
msim.p(1496,29) Error: Incompatible type for arg no. 2: Got "Constant String", expected "LongInt"
msim.p(1498,32) Error: Incompatible type for arg no. 2: Got "Constant String", expected "LongInt"
msim.p(4202,6) Error: Identifier not found "p"
msim.p(4203,7) Error: Identifier not found "p"
msim.p(4204,18) Error: Identifier not found "p"
msim.p(4205,11) Error: Identifier not found "p"
msim.p(4205,18) Error: Identifier not found "p"
msim.p(4205,25) Error: Identifier not found "p"
msim.p(4240,16) Warning: unreachable code
msim.p(4402,19) Warning: unreachable code
msim.p(4478,6) Warning: unreachable code
msim.p(4480,6) Warning: unreachable code
msim.p(4491,3) Warning: unreachable code
msim.p(4496,6) Warning: unreachable code
msim.p(4503,6) Warning: unreachable code
msim.p(4505,2) Warning: unreachable code
msim.p(4562,6) Warning: unreachable code
msim.p(4564,2) Warning: unreachable code
msim.p(4566,2) Warning: unreachable code
msim.p(4569,6) Warning: unreachable code
msim.p(4571,2) Warning: unreachable code
msim.p(4573,2) Warning: unreachable code
msim.p(4576,2) Warning: unreachable code
msim.p(4578,2) Warning: unreachable code
msim.p(4585,3) Warning: unreachable code
msim.p(4587,3) Warning: unreachable code
msim.p(4593,3) Warning: unreachable code
msim.p(4595,3) Warning: unreachable code
msim.p(4599,2) Warning: unreachable code
msim.p(4601,2) Warning: unreachable code
msim.p(4603,2) Warning: unreachable code
msim.p(4637,28) Warning: unreachable code
msim.p(4667,31) Error: Incompatible type for arg no. 2: Got "Constant String", expected "LongInt"
msim.p(4749,29) Error: Incompatible type for arg no. 2: Got "Constant String", expected "LongInt"
msim.p(4777,2) Warning: unreachable code
msim.p(4928,31) Error: Incompatible type for arg no. 2: Got "Constant String", expected "LongInt"
msim.p(5053) Fatal: There were 16 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)

------------------------------------

Thanks

Alexandre Racine
Projets spéciaux
514-461-1300 poste 3304

Reply by email

Marco van de Voort
to Alexandre Racine
Show quoted text 10 lines
Hi guys, I am new here so don't be too much hard on me :) I am trying to compile this 1992 software msim.p from the FASTSLINK family. You can get it here... wget http://watson.hgen.pitt.edu/pub/fastslink/fastslink.tar.Z I have attached the msim.p file. So, am I doing something wrong? Is this an actual pascal file? Is 1992 too old? :)

Yes. Just an older version. The {SUN} comments indicates some sun system.

It looks like a TP program that was patched for SUN.

Three things to fix

First,
reset(f,'name.dat');

changed to

assign(f,'name.dat');
reset(f);

similarly for rewrite

second, I renamed the program to msimprogram to avoid a duplicate identifier issue involving the program name.

Third, a forward declared procedure must repeat its entire declaration.

http://www.stack.nl/~marcov/msimprogram.p

Note I only tried to get it compiling, not if it works.

Reply by email