[fpc-pascal]FPC Linux, please help

Jan Prazak janp9 at gmx.net
Sun Jun 16 20:56:38 CEST 2002


Hello!
I have some problems when compiling "testvga.pp" (an example pas-file, 
included in the FreePascal-package).
BTW: compiling of "Hello world" works.
I'm running FPC 1.0.6 under RedHat Linux 7.3,
but I'm a Linux-newbie, so maybe I'm doing something wrong.

Here is an extract (the end) from the output after "ppc386 testvga.pp"

...
PPU Loading /usr/lib/fpc/1.0.6/units/linux/svgalib/svgalib.ppu
Assembling testvga
Using assembler: /usr/bin/as
Linking testvga
Using util /usr/bin/ld
/usr/bin/ld:link.res: file format not recognized; treating as linker script
/usr/bin/ld:link.res:48: parse error
testvga.pp(24,7) Error: Error while linking
Closing script ppas.sh

I don't know why the linker doesn't recognize the file.
I have also tried to use "nasm" instead of "gas", but it's the same problem.
Here is the beginning of "link.res":

SEARCH_DIR(/lib/)
SEARCH_DIR(/usr/lib/)
SEARCH_DIR(/usr/X11R6/lib/)
SEARCH_DIR(./)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/rtl/)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/zlib/)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/x11/)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/utmp/)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/unzip/)
SEARCH_DIR(/usr/lib/fpc/1.0.6/units/linux/uncgi/)


Please reply to my eMail-address! I'm not in a newsgroup.
janp9 at gmx.net

Thanks,
Jan

P.S. I would like to use the (beta-) IDE for Linux, but there is a 
problem with the character table (ASCII table). I have experimented with 
"consolechars" and "loadkeys", but I just can't get it working, I need 
the default ASCII-table from DOS. Does somebody know a solution to fix this?






More information about the fpc-pascal mailing list