Lazarus

Programming => Networking and Web Programming => Pas2JS => Topic started by: Soner on June 29, 2019, 12:11:44 pm

Title: pas2js examples don't work.
Post by: Soner 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
Title: Re: pas2js examples don't work.
Post by: engkin 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-
Title: Re: pas2js examples don't work.
Post by: heejit 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
Title: Re: pas2js examples don't work.
Post by: Soner 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.
TinyPortal © 2005-2018