Forum > General

Fpc errors on Linux

(1/1)

nikel:
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?

nikel:
I'm going to install virtual machine and compile it using Lazarus under Linux.

ccrause:
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:
Thanks for the reply. I'll keep in mind that.

Navigation

[0] Message Index

Go to full version