#1 2018-03-27 20:28:41

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Errors compiling SynSQLite3Static.pas in commit 4482

Hi @ab, when compiling a project that use sqlite3 the following errors are reported:

Build
  [Error] SynSQLite3Static.pas(747): Unsatisfied forward or external declaration: 'CodecGetReadKey'
  [Error] SynSQLite3Static.pas(748): Unsatisfied forward or external declaration: 'CodecGetWriteKey'
  [Error] SynSQLite3Static.pas(977): Unsatisfied forward or external declaration: 'sqlite3_key'
  [Error] SynSQLite3Static.pas(978): Unsatisfied forward or external declaration: 'sqlite3_rekey'
  [Error] SynSQLite3Static.pas(1083): Unsatisfied forward or external declaration: 'sqlite3_trace_v2'
  [Error] SynSQLite3Static.pas(1): Unsatisfied forward or external declaration: 'winRead'
  [Error] SynSQLite3Static.pas(1): Unsatisfied forward or external declaration: 'winWrite'
  [Fatal Error] uMain.pas(346): Could not compile used unit 'SynSQLite3Static.pas'

with previous version no errors.

This also fails in TestSQL3.dpr

Thanks.

Last edited by EMartin (2018-03-27 20:44:59)


Esteban

Offline

#2 2018-03-27 21:41:39

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

Re: Errors compiling SynSQLite3Static.pas in commit 4482

You didn't update your .obj files.

Please check http://blog.synopse.info/post/2018/03/1 … encryption

Offline

#3 2018-03-28 00:55:05

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Re: Errors compiling SynSQLite3Static.pas in commit 4482

Sorry, I did read the article but I forgot that part.

I downloaded and copied all content from zip file to the "static" folder and I put the "static" folder in "Search Path" (Delphi 7) but the error continue. My target and development OS is Windows 32bit.

I'm sure I did something wrong but I don't know what.

Thanks.

Last edited by EMartin (2018-03-28 01:28:38)


Esteban

Offline

#4 2018-03-28 07:46:54

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

Re: Errors compiling SynSQLite3Static.pas in commit 4482

Read again. "static" is for FPC, not for Delphi. It contains .o files.

As I wrote, you need to update your .obj files for Delphi.
As stated by https://synopse.info/files/html/Synopse … l#TITL_113
From http://synopse.info/files/sqlite3obj.7z

Offline

#5 2018-03-28 10:47:24

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Re: Errors compiling SynSQLite3Static.pas in commit 4482

yes, the sqlite3.obj files was the problem.

Sorry and thanks.


Esteban

Offline

#6 2018-03-28 13:32:44

Junior/RO
Member
Registered: 2011-05-13
Posts: 210

Re: Errors compiling SynSQLite3Static.pas in commit 4482

@EMartin you can get all needed files using git.

C:\> git pull

And it's done.

Offline

#7 2018-03-28 13:54:24

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Re: Errors compiling SynSQLite3Static.pas in commit 4482

@Junior/RO, I used Fossil, in git are these this files ?


Esteban

Offline

#8 2018-03-28 14:48:00

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

Re: Errors compiling SynSQLite3Static.pas in commit 4482

The files are part of github repository, whereas with fossil, you need to download them separately.
See https://synopse.info/files/html/Synopse … l#TITL_113

Offline

#9 2018-03-28 18:45:26

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Re: Errors compiling SynSQLite3Static.pas in commit 4482

SynProject and HTMLView folders are not in GitHub.com, is the idea ?

Thanks.

Esteban.


Esteban

Offline

#10 2018-03-29 07:30:03

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

Re: Errors compiling SynSQLite3Static.pas in commit 4482

Yes, SynProject has its own repository https://github.com/synopse/SynProject
Since it is uncoupled from the framework itself.

HtmlView is just a fork, with no real change.
I did put it there just to show how to work with SynPdf...

Offline

Board footer

Powered by FluxBB