Lazarus

Using the Lazarus IDE => General => Topic started by: nikel on September 11, 2021, 01:17:54 am

Title: Fpc errors on Linux
Post by: nikel 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?
Title: Re: Fpc errors on Linux
Post by: nikel on September 11, 2021, 04:08:31 pm
I'm going to install virtual machine and compile it using Lazarus under Linux.
Title: Re: Fpc errors on Linux
Post by: ccrause 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
Title: Re: Fpc errors on Linux
Post by: nikel on September 12, 2021, 09:51:04 pm
Thanks for the reply. I'll keep in mind that.
TinyPortal © 2005-2018