Recent

Author Topic: pas2js examples don't work.  (Read 532 times)

Soner

  • Full Member
  • ***
  • Posts: 159
pas2js examples don't work.
« on: June 29, 2019, 12:11:44 pm »
All examples that I tried don't compile. It breaks with error:
Compile Project, OS: browser, CPU: ecmascript5, Target: demoadd.exe: Exit code 2, Errors: 1
Fatal: parameter -Sci: unknown option "-Sci". Use -h for help.

Only demo/fcldb/dmodb.lpr compiles.

I could not find whre the option "-Sci" is.
Does anyone know how to fix it?

Lazarus 2.0.3 32bit
pas2js-windows-1.4.8

engkin

  • Hero Member
  • *****
  • Posts: 2513
Re: pas2js examples don't work.
« Reply #1 on: June 29, 2019, 03:27:48 pm »
According to the user manual:
https://www.freepascal.org/docs-html/current/user/usersu16.html#x39-460005.1.5

-Sc
    Support C-style operators, i.e. *=, +=, /= and -=.
...
-Si
    Support C++ style INLINE-

jshah

  • Full Member
  • ***
  • Posts: 182
Re: pas2js examples don't work.
« Reply #2 on: July 11, 2019, 03:35:24 pm »
These two options exist in

Project -> Project Options -> Complier Options -> Parsing

Removing these two option will compile the project

Soner

  • Full Member
  • ***
  • Posts: 159
Re: pas2js examples don't work.
« Reply #3 on: July 11, 2019, 05:20:22 pm »
These two options exist in

Project -> Project Options -> Complier Options -> Parsing

Removing these two option will compile the project
This is it thanks.

Also thank you Engkin for the explanation.