Recent

Author Topic: Fpc errors on Linux  (Read 1464 times)

nikel

  • Full Member
  • ***
  • Posts: 152
Fpc errors on Linux
« on: September 11, 2021, 01:17:54 am »
Hello, I'm trying to modify my console program on Windows and compile it on Linux. I had written it on Linux and modified it on Windows and somehow it compiles:

* Compiled it on Linux (worked fine)
* Modified it on Windows then compiled it on Linux (worked fine)

But when I

* Modify on Windows using Lazarus
* Cleanup and build using Lazarus on Windows
* Compile on Linux using fpc

I get error: Can't find unit FileUtil used by Project1. After fixing it many other problems begin. How can I compile my program on Linux using FPC?
« Last Edit: September 11, 2021, 12:02:57 pm by nikel »

nikel

  • Full Member
  • ***
  • Posts: 152
Re: Fpc errors on Linux
« Reply #1 on: September 11, 2021, 04:08:31 pm »
I'm going to install virtual machine and compile it using Lazarus under Linux.

ccrause

  • Sr. Member
  • ****
  • Posts: 481
Re: Fpc errors on Linux
« Reply #2 on: September 11, 2021, 04:55:30 pm »
FileUtils is part of Lazarus, so you need to supply the location of the compiled unit to the compiler.  When compiling inside Lazarus this gets handled automatically.  Have a look at this discussion: https://forum.lazarus.freepascal.org/index.php?topic=46053.0

nikel

  • Full Member
  • ***
  • Posts: 152
Re: Fpc errors on Linux
« Reply #3 on: September 12, 2021, 09:51:04 pm »
Thanks for the reply. I'll keep in mind that.

 

TinyPortal © 2005-2018