Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile on Delphi 10.3 #4

Open
array81 opened this issue Jun 5, 2020 · 5 comments
Open

Cannot compile on Delphi 10.3 #4

array81 opened this issue Jun 5, 2020 · 5 comments

Comments

@array81
Copy link

array81 commented Jun 5, 2020

If I try to compile the demo on Delphi 10.3 I get this error:
"[dcc32 Error] quickjs.pas(1467): E2029 Declaration expected but string constant found"

@Coldzer0
Copy link
Owner

Coldzer0 commented Jun 6, 2020

Thanks for the report.

Yes i forget to test the last update with Delphi.

please use this fix

{$IFDEF FPC}
function c_udivti3(num,den:uint64):uint64; cdecl; public alias: {$ifdef darwin}'___udivti3'{$else} '__udivdi3'{$endif};
begin
 result:=num div den;
end;
{$ENDIF}

till i fix it because i've to update other stuff related to the Delphi demo because it's outdated .

@array81
Copy link
Author

array81 commented Jun 7, 2020

Thanks. It fix the bug but I cannot compile the demo on Delphi.

@array81
Copy link
Author

array81 commented Jun 11, 2020

I have compile the demo on Delphi but I cannot understand how use it. I get always error when try run a javascript

@BoscoBecker
Copy link

I have the same question haha

@Coldzer0
Copy link
Owner

I recommend you to check the mormot2 QuickJS implementation it's built on top of this project but with more useful APIs.
https://github.com/synopse/mORMot2/blob/master/src/lib/mormot.lib.quickjs.pas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants