Recent

Author Topic: Fatal: Can't find unit System  (Read 435 times)

smartduck

  • New member
  • *
  • Posts: 5
Fatal: Can't find unit System
« on: July 13, 2020, 07:15:13 pm »
Hello,

I hope someone can help me getting the freepascal ide compile.
I wrote a simple example hello world to test the ide.
When I try to run the program I get Fatal: Can't find unit System used by helloworld.

I have also installed Lazarus IDE. Programs in Lazarus compile and run fine.

I noticed fp putting the fp.cfg, fp.dsk, fp.ini and fp____.err in my home directory.

Regards,

Marcel

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1052
    • Burdjia
Re: Fatal: Can't find unit System
« Reply #1 on: July 13, 2020, 07:24:11 pm »
Seems you didn't installed it correctly.  What system are you using?
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

smartduck

  • New member
  • *
  • Posts: 5
Re: Fatal: Can't find unit System
« Reply #2 on: July 13, 2020, 07:50:00 pm »
I use fp 3.0.4 on AntiX linux 19.2.
What files are missing?




smartduck

  • New member
  • *
  • Posts: 5
Re: Fatal: Can't find unit System
« Reply #3 on: July 13, 2020, 08:03:11 pm »
Just reinstalled fp, still the same error.
Maybe something is broken in one of the AntiX repository packages.

Thaddy

  • Hero Member
  • *****
  • Posts: 10449
Re: Fatal: Can't find unit System
« Reply #4 on: July 13, 2020, 08:30:58 pm »
Did your program explicitly refer to unit system? That is wrong. Remove any references to system and try again.
System is always included automatically.
If that does not work install with fpcupdeluxe which is the best option for starters with install troubles.
« Last Edit: July 13, 2020, 08:39:12 pm by Thaddy »
When you ask a question that is actually answered in the documentation, you are either lazy or a moron.

smartduck

  • New member
  • *
  • Posts: 5
Re: Fatal: Can't find unit System
« Reply #5 on: July 14, 2020, 05:25:36 pm »
Just the example from the freepascal wiki:

Code: Pascal  [Select][+][-]
  1. program Hello;
  2. begin
  3.   writeln ('Hello, world.');
  4.   readln;
  5. end.
  6.  

Thaddy

  • Hero Member
  • *****
  • Posts: 10449
Re: Fatal: Can't find unit System
« Reply #6 on: July 14, 2020, 06:20:03 pm »
Just the example from the freepascal wiki:

Code: Pascal  [Select][+][-]
  1. program Hello;
  2. begin
  3.   writeln ('Hello, world.');
  4.   readln;
  5. end.
  6.  

If that gives you that error your install is really screwed... Try uninstall (purge) and after that, fpcupdeluxe.
When you ask a question that is actually answered in the documentation, you are either lazy or a moron.

 

TinyPortal © 2005-2018