Sign in Join

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

Mailing lists / fpc-pascal / 2001-02

Graph Unit Usage

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Peter Dobrev

Hello everybody!

I soon began using the graph unit in Turbo Pascal 7.0 on Windows. I tried it on my linux under fpc-1.0.4..
I tried to change the "c:\tp\bgi" directory to "/mnt/win/tp/bgi" but it does not helped. Here's the error :

ppc386 kart.pas

Free Pascal Compiler version 1.0.4 [2001/01/02] for i386 Copyright (c) 1993-2000 by Florian Klaempfl
Target OS: Linux for i386
Compiling kart.pas
Assembling program
Linking kart
/usr/bin/ld: cannot find -lvga
kart.pas(8) Warning: Error while linking
Closing script ppas.sh
7 Lines compiled, 9.1 sec

I'll be very happy if anybody can help me!
Thanks in advance!

Greets! Peter Dobrev
Sebastian Günther
to Peter Dobrev
Peter Dobrev wrote 5 lines
/usr/bin/ld: cannot find -lvga I'll be very happy if anybody can help me! Thanks in advance!

Installing the developer version of the svgalib package should solve your problem.

- Sebastian

Unknown author
to Peter Dobrev: Hello everybody! I soon began using the graph unit in Turbo Pascal 7.0 on Windows. I…
Peter Dobrev wrote 19 lines
Hello everybody! I soon began using the graph unit in Turbo Pascal 7.0 on Windows. I tried it on my linux under fpc-1.0.4.. I tried to change the "c:\tp\bgi" directory to "/mnt/win/tp/bgi" but it does not helped. Here's the error : ppc386 kart.pas Free Pascal Compiler version 1.0.4 [2001/01/02] for i386 Copyright (c) 1993-2000 by Florian Klaempfl Target OS: Linux for i386 Compiling kart.pas Assembling program Linking kart /usr/bin/ld: cannot find -lvga kart.pas(8) Warning: Error while linking Closing script ppas.sh 7 Lines compiled, 9.1 sec

You must have the svgalib package installed on your system. the Graph unit links to libvga, which must be installed on your system. The borland BGI directory no longer exists, and is not used in the initgraph call as far as I know. (I may be wrong)

Michael.

Jonas Maebe
to Unknown author
You must have the svgalib package installed on your system. the Graph unit links to libvga, which must be installed on your system. The borland BGI directory no longer exists, and is not used in the initgraph call as far as I know. (I may be wrong)

It's still used for the *.CHR fonts. Note that you have to make sure they end in .CHR and not in .chr (ie. the extension must be uppercase), or they won't be found under Linux.

Jonas