Recent

Author Topic: GRAPH.TPU  (Read 8622 times)

nicolaiiii

  • Newbie
  • Posts: 4
GRAPH.TPU
« on: October 25, 2014, 03:29:38 pm »
Hi all,

While compiling, I get still the error 'GRAPH.TPU missing'. I placed it in several directories:
- BIN
- BGI
- next to the source code

Nothing seems to work.

Thanks.

Bart

  • Hero Member
  • *****
  • Posts: 5288
    • Bart en Mariska's Webstek
Re: GRAPH.TPU
« Reply #1 on: October 25, 2014, 05:36:09 pm »
GRAPH.TPU ?

FreePascal does not use ,tpu (Turbo Pascal Unit) AFAIK.

Bart

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: GRAPH.TPU
« Reply #2 on: October 25, 2014, 06:09:56 pm »
Free Pascal is source compatible but not binary compatible with Turbo Pascal. Use graph unit that comes with FPC instead of copying one from Turbo Pascal.

nicolaiiii

  • Newbie
  • Posts: 4
Re: GRAPH.TPU
« Reply #3 on: October 25, 2014, 08:02:24 pm »
Ok, but what is the file that I use to select else then graph.tpu?

Roland57

  • Sr. Member
  • ****
  • Posts: 422
    • msegui.net
Re: GRAPH.TPU
« Reply #4 on: October 25, 2014, 09:54:41 pm »
Ok, but what is the file that I use to select else then graph.tpu?

Hello! if your compiler is correctly installed, you have nothing to do, just "build" your program: the compiler should find the unit.

Could you give us more informations about your installation? How do you compile?
My projects are on Gitlab and on Codeberg.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: GRAPH.TPU
« Reply #5 on: October 26, 2014, 01:12:19 am »
Graph unit comes pre-installed on supported systems (subset of all FPC supported systems). I don't really remember what major platform is missing, but it's either x86_64-win64 or x86_64-linux. Depending on your OS, there might be replacement units that has compatible interface so you just need to change the name in the uses clause. Look at your installation directory under units/graph subdirectory. It depends on how you get FPC installed, though. I have a feeling that you actually use Turbo Pascal instead of Free Pascal, Free Pascal would never try to look for .tpu files when resolving uses clause.

 

TinyPortal © 2005-2018