I'm trying to compile a unit, which use some LCL units. The compilation through the IDE works, but the compilation dosen't work by command line.
- First I realized that using the command line "FPC <Unit>" will compile in Release Mode. The Release Mode was asking for the location of the Interfaces unit. In the IDE, the compilation in the Release Mode also works fine.
- I tryed to copy the content of the fp.cfg, the configuration file used by the IDE, and I pasted it in the fpc.cfg file, the configuration file used by the compiler(in command line). But nothing changed, in command line, the output is that the compiler can't find the Interfaces unit, even after the copy of the configuration from fp.cfg content to fpc.cfg the configuration of the IDE pasted.