Recent

Author Topic: Using fp.exe under Windows XP  (Read 4118 times)

Curt Carpenter

  • Sr. Member
  • ****
  • Posts: 396
Using fp.exe under Windows XP
« on: January 24, 2016, 07:56:00 pm »
Hello.
I've installed Lazarus with FreePascal 3.0 on my WinXP machine, and decided for old times sake to try fp.exe, the text-mode IDE that comes with FPC. 

The fp.exe program is located in    C:\Development\FreePascal\FPC\bin\i386-win32   and I've added this to my path.

I launch fp.exe, the IDE appears and write the standard "hello world" program:

Program Hello;
begin
  writeln('hello, world')
end.

I save this and compile, but I always get the "compile failed" window reporting two errors. 

I figure there's something missing in my setup, and would appreciate any guidance on what I may be missing.   

Thanks.
Curt Carpenter

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Using fp.exe under Windows XP
« Reply #1 on: January 24, 2016, 08:15:20 pm »
Alt-O to open options window, press c for compiler options.

On the verbosity tab  select all.

Now compile your program again and pay attention to the error messages. They will tell you what it wrong (yes there are a lot of messages, but it is the most sane way to attack your problem without telling us what the last error messages are).

Most probably missing paths to your units etc.

You can search for the errors with google, and most certainly something will pop up that gives a pointer in what direction to look for.

Or in short: you need to setup the ide and compiler options properly  ;)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: Using fp.exe under Windows XP
« Reply #2 on: January 24, 2016, 08:19:23 pm »

try setting the unit directories in options->directories to

C:\Development\FreePascal\FPC\units\$FPCTARGET\*

or wherever your unit tree (with directories like "rtl") is.

Curt Carpenter

  • Sr. Member
  • ****
  • Posts: 396
Re: Using fp.exe under Windows XP
« Reply #3 on: January 25, 2016, 12:42:45 am »
OK Markov -- I added the directory C:\Development\FreePascal\fpc\units\i386-win32\rtl to the units directories and that did the trick.  Thank you for your help.

 

TinyPortal © 2005-2018