You are not logged in.
I created a unit called "FileTables" that uses classes and SQLite3 SynCommons but when compiling I get errors "can not find the file SQLite3.pas"even though I entered the path in the Delphi library.
Using the same unit from a project the error does not occur.
What should I add to the component you do not need to add to a project?
unit FileTables;
interface
uses
Windows,
SysUtils,
SynCommons,
SQLite3,
SQLite3Commons,
SQLite3HttpClient,SQLite3HttpServer;
...
Offline
I suppose you didn't enter the SQLite3 sub-path.
For instance, I had both folders of my computer as this D:\Dev\Lib;D:\Dev\Lib\SQLite3
in the main Delphi library paths, for both source code and library.
Offline
odd because I created a variable called "$ (Synops) " with the path of the source of "Synops OpenSource" and in fact if I create a simple project it works.
The component is very simple and is what I set out below.
$(Synopse) = c:\.....\Synopse OpenSource
$(sqlite3obj); where i put sqlite3.obj and sqlite3fts3.obj
$(Synopse);
$(Synopse)\SQLite3;
package SQliteComponent;
{$R *.res}
{$ALIGN 8}
{$ASSERTIONS ON}
{$BOOLEVAL OFF}
{$DEBUGINFO ON}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS ON}
{$LOCALSYMBOLS ON}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION ON}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO ON}
{$SAFEDIVIDE OFF}
{$STACKFRAMES OFF}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST OFF}
{$MINENUMSIZE 1}
{$IMAGEBASE $400000}
{$IMPLICITBUILD ON}
{$DEFINE USETMSPACK}
requires
rtl;
contains
SQLite3UI in '..\Synopse OpenSource\SQLite3\SQLite3UI.pas';
end.
//is a simple package that uses your unit
unit SQLite3UI;
....
procedure Register;
begin
RegisterComponents('Synopse',[TSynLabeledEdit]);
end;
Error: impossible to find file "C:\......\SQLite3i18n.pas"
Why
Offline
I do not understand, AFAIK is a directive compiler?
I found only these two lines of comments that refer to AFAIK
1) // - it's still fast, faster than any DB AFAIK, around 500 updates
...
2){ Below we just ignore the value of next string token.
We can do this -- because PasDoc (at least for now)
does not recursively parse units on "uses" clause.
So we are not interested in the value of
given string (which should be a file-name (usually relative,
but absolute is also allowed AFAIK) with given unit.)
Offline