[solved] LinuxMint Zeos Lib Errors

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
PaulW
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 30.10.2011, 01:14

[solved] LinuxMint Zeos Lib Errors

Post by PaulW »

LinuxMint (Debian Edition) 3.2.0-3-amd64
Lazarus 0.9.30.4-1.1 (Installed from LinuxMint sources)
FPC 2.6.0
SVN 35971
x86_64-linux-gtk 2

I have Lazarus 1.0.2, Zeos 7.0.0-alpha and sqlite3 installed successfully on my Win7 partition. Everything works fine including my program with Zeos Lib and an sqlite3 database.

I am trying to replicate the same on my LinuxMint partition. I installed Lazarus 0.9.30.4-1-1 from the repository and Zeos 6.6.6 stable on my LinuxMint partition. I can compile and a basic program that does not use Zeos OK. However, I'm trying to install Zeos Lib, starting with zcore.lpk and get a bunch of errors:
  • Hint: Start of reading config file /etc/fpc.cfg
    Hint: End of reading config file /etc/fpc.cfg
    Free Pascal Compiler version 2.6.0-4 [2012/07/06] for x86_64
    Copyright (c) 1993-2011 by Florian Klaempfl and others
    Target OS: Linux for x86-64
    Compiling zcore.pas
    Compiling /usr/lib/lazarus/0.9.30.4/components/zeos/src/core/ZClasses.pas
    /usr/lib/lazarus/0.9.30.4/components/zeos/src/core/ZClasses.pas(84,22) Error: No matching implementation for interface method "IUnknown.QueryInterface(constref TGuid,out <Formal type>):LongInt; CDecl;" found
    /usr/lib/lazarus/0.9.30.4/components/zeos/src/core/ZClasses.pas(84,22) Error: No matching implementation for interface method "IUnknown._AddRef:LongInt; CDecl;" found
    /usr/lib/lazarus/0.9.30.4/components/zeos/src/core/ZClasses.pas(84,22) Error: No matching implementation for interface method "IUnknown._Release:LongInt; CDecl;" found
    /usr/lib/lazarus/0.9.30.4/components/zeos/src/core/ZClasses.pas(183,14) Warning: An inherited method is hidden by "TZAbstractObject.Equals(const IUnknown):Boolean;"
    /usr/lib/lazarus/0.9.30.4/components/zeos/src/core/ZClasses.pas(186,14) Warning: An inherited method is hidden by "TZAbstractObject.ToString:AnsiString;"
    /usr/lib/lazarus/0.9.30.4/components/zeos/src/core/ZClasses.pas(190,1) Fatal: There were 3 errors compiling module, stopping
Looks like the No matching implementation for interface method errors are the problem, but I have no idea on how to fix. Suggestions will be greatly appreciated.
marcov
Senior Boarder
Senior Boarder
Posts: 95
Joined: 24.06.2010, 09:17

Post by marcov »

This is normal when you use an outdated Zeos. (6.x)

With FPC, use the 7.x series.
PaulW
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 30.10.2011, 01:14

Post by PaulW »

@marcov
Thanks for your help. Switching to 7.0 solved the problem.
Post Reply