Recent

Author Topic: CrystalScripts: Delphi/FPC + Lua, Python and JavaScript  (Read 5684 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: CrystalScripts: Delphi/FPC + Lua, Python and JavaScript
« Reply #15 on: March 26, 2020, 04:12:15 am »
This design works great in Delphi, but it doesn’t link in FreePascal:
Quote
Project1.dpr(14,1) Error: Undefined symbol: P$PROJECT1_$$_ADD$LONGINT$LONGINT$LONGINT$$LONGINT

Tell me, please, how to fix this?
Add cdecl; before (important!) external; ?
It links well without (and with) it on x86_64-linux, but windows might have different treatment. C compilers exported symbols for Windows (AFAIK only in 32-bit, so I find it strange it happens on you) adds _ prefix to the function name, as can be seen in the "undefined symbol" message.

DevilDevil

  • New Member
  • *
  • Posts: 49
Re: CrystalScripts: Delphi/FPC + Lua, Python and JavaScript
« Reply #16 on: March 26, 2020, 08:08:53 am »
Leledumbo,

Thanks

The problem was resolved under another topic. Now Tiny.Rtti compiles in FPC :)

 

TinyPortal © 2005-2018