Recent

Author Topic: Error: Illegal parameter: MyApp.lpr  (Read 353 times)

daniel_sap

  • Jr. Member
  • **
  • Posts: 93
Error: Illegal parameter: MyApp.lpr
« on: April 21, 2025, 06:23:38 am »
Hi
I'm trying to compile application on Ubuntu 22.04.5 LTS with
Free Pascal Compiler version 3.2.2+dfsg-9ubuntu1 [2022/04/11] for x86_64
I used 'sudo apt install fpc' to install the FPC on the machine

I cloned my project from git to ~/projects/my-project folder
and trying to compile it with the following command
Code: Pascal  [Select][+][-]
  1. fpc @build/ubuntu/fpc.cfg
  2.  

And got this error
[0.002] Error: Illegal parameter: MyApp.lpr

and this is the logged output
Code: Pascal  [Select][+][-]
  1. me@vmi:~/projects/my-app/Source$ fpc @build/ubuntu/fpc.cfg
  2. [0.002] interpreting file option "# Debug info (uncomment if needed)"
  3. [0.002] interpreting file option "# -g"
  4. [0.002] interpreting file option "# Output binary name"
  5. [0.002] Handling option "-oMyApp"
  6. [0.002] interpreting option "-oMyApp"
  7. [0.002] interpreting file option "# Main program file"
  8. [0.002] Error: Illegal parameter: MyApp.lpr
  9. [0.002] Hint: End of reading config file build/ubuntu/fpc.cfg
  10. Error: /usr/bin/ppcx64 returned an error exitcode
  11.  

Do you have any idea what could cause the error

TRon

  • Hero Member
  • *****
  • Posts: 4351
Re: Error: Illegal parameter: MyApp.lpr
« Reply #1 on: April 21, 2025, 06:33:26 am »
Do you have any idea what could cause the error
The program name is not a valid option, as indicated by the error message.

afaik, the name of the program to compile can only be supplied by feeding it to the compiler on the command-line.
Today is tomorrow's yesterday.

daniel_sap

  • Jr. Member
  • **
  • Posts: 93
Re: Error: Illegal parameter: MyApp.lpr
« Reply #2 on: April 21, 2025, 06:45:47 am »
Do you have any idea what could cause the error
The program name is not a valid option, as indicated by the error message.

afaik, the name of the program to compile can only be supplied by feeding it to the compiler on the command-line.

Thank you Tron
Compiles successfully now

 

TinyPortal © 2005-2018