Recent

Author Topic: JSON Superobject not working on Linux  (Read 7702 times)

snorkel

  • Hero Member
  • *****
  • Posts: 817
JSON Superobject not working on Linux
« on: April 17, 2012, 10:07:43 pm »
I am using the exact same version of Lazarus on win32(0.9.30.4-0/FPC 2.6.0) and Linux(ubuntu 12.04) and the JSON super object (http://code.google.com/p/superobject/) won't compile on Linux, compiler generates this error:
(works fine on win32)

/home/components/superobject/superobject.pas(154,18) Error: No matching implementation for interface method "IUnknown._AddRef:LongInt; CDecl;" found
/home/components/superobject/superobject.pas(154,18) Error: No matching implementation for interface method "IUnknown._Release:LongInt; CDecl;" found
/home/components/superobject/superobject.pas(858,1) Fatal: There were 2 errors compiling module, stopping


***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11459
  • FPC developer.
Re: JSON Superobject not working on Linux
« Reply #1 on: April 17, 2012, 11:44:26 pm »
/home/components/superobject/superobject.pas(154,18) Error: No matching implementation for interface method "IUnknown._AddRef:LongInt; CDecl;" found

In 2.6.0 the base COM IUnknown interface definition changed. See

http://wiki.freepascal.org/User_Changes_2.6.0#IInterface.QueryInterface.2C_._AddRef_and_._Release_definitions_have_been_changed
 
Strangely enough some methods look fixed, but not all of them. It might also be that the mix of features causes the problem.
« Last Edit: April 18, 2012, 12:02:47 am by marcov »

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: JSON Superobject not working on Linux
« Reply #2 on: April 21, 2012, 08:43:28 am »
Thanks,  I got it working.  Had to change a couple of functions to use cdecl instead of stdcall.
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

 

TinyPortal © 2005-2018