#1 2021-09-18 17:36:45

Beertjie
Member
From: South Africa
Registered: 2018-09-09
Posts: 14

Reference from SynSelfTests to ECCProcess in SQLite3 samples

I'm following the documentation section "26.4.4. Writing your project for FPC".

The minimal application example given there is this:

program LinuxSynTestFPCLinuxi386;

{$I Synopse.inc}
{$APPTYPE CONSOLE}

uses
  {$I SynDprUses.inc}
  mORMotSelfTests;

begin
  SQLite3ConsoleTests;
end.

However, for me this program failed to compile due to a reference to a .pas file in the SQLite3 samples directory! It turns out the SynSelfTests unit depends on a unit there only for FPC:

ECCProcess {$ifdef FPC} in '.\SQLite3\Samples\33 - ECC\ECCProcess.pas' {$endif},

I suppose I could add this sample project to my search path, but I must admit I was surprised to find the test code tightly coupled to the samples. Or is there something else going on that I'm missing?

Offline

#2 2021-09-18 19:28:01

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,273
Website

Re: Reference from SynSelfTests to ECCProcess in SQLite3 samples

This paragraph is clearly outdated.

The tests covers also the samples process, especially high-level ECC process.
So this code won't work without adding the sample unit code to the search path or within the main .lpr uses clause.

Offline

Board footer

Powered by FluxBB