Skip to content

Delphi 32-bit compiler version is not working #11

@SergeySammal

Description

@SergeySammal

Hi hshatti,

Any chance to support Delphi 32-bit compiler in this library?
It generates different errors when using the library in a 32-bit process.

It looks like the problem is here

unit onnxruntime_pas_api;

interface
  {$IFDEF FPC}
    {$mode delphi}
    {$ModeSwitch advancedrecords}
    {$ModeSwitcOrtValue typehelpers}
    {.$linklib onnxruntime.dll}
    {$MACRO ON}
    {$PACKRECORDS C}
    {$PackEnum 4}
  {$else}
    {$Z4}
    type size_t= UInt64; // delphi?  

If I use UInt32 here, it works ok.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions