[sqlite] compile switches: SQLITE_OMIT_ATTACH & SQLITE_OMIT_VIRTUALTABLE

2016-03-09 Thread Stephan Beal
On Tue, Mar 8, 2016 at 2:47 PM, Gert Corthout 
wrote:

> hello,
> when I compile the amalgation with these compile
> switches:SQLITE_OMIT_VIRTUALTABLEorSQLITE_OMIT_VIRTUALTABLE
>

https://www.sqlite.org/compile.html

If any of these options are defined, then the same set of SQLITE_OMIT_*
options must also be defined when using the 'lemon' tool to generate the
parse.c file and when compiling the 'mkkeywordhash' tool which generates
the keywordhash.h file. Because of this, these options may only be used
when the library is built from canonical source, not from theamalgamation
. Some SQLITE_OMIT_* options
might work, or appear to work, when used with the amalgamation
. But this is not guaranteed. In
general, always compile from canonical sources in order to take advantage
of SQLITE_OMIT_* options.



-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf


[sqlite] compile switches: SQLITE_OMIT_ATTACH & SQLITE_OMIT_VIRTUALTABLE

2016-03-08 Thread Gert Corthout
hello,
when I compile the amalgation with these compile 
switches:SQLITE_OMIT_VIRTUALTABLEorSQLITE_OMIT_VIRTUALTABLE
the amalgation fails to compile: the implementation of some functions are 
removed but the definition + call to these functions still exist. I use VS 2010 
to compile. This is the full command line (without the problematic 
predefines):/I"..\Export\Include" /I"..\Include" /I"..\Ref\Include" /Zi /nologo 
/W3 /WX- /O2 /Oy- /D "SQLITE_OMIT_WAL" /D "SQLITE_OMIT_AUTOVACUUM" /D 
"SQLITE_OMIT_EXPLAIN" /D "SQLITE_OMIT_SHARED_CACHE" /D 
"SQLITE_OMIT_AUTHORIZATION" /D "WIN32" /D "NDEBUG" /D "_LIB" /D 
"_WIN32_WINNT=0X501" /D "WINVER=0X501" /D "_MBCS" /Gm- /EHsc /MD /Zp1 /GS 
/fp:precise /Zc:wchar_t /Zc:forScope 
/Fp"C:\Workspaces\grpExtern\gc_SQLite_main\VC100\Release\\SQLite.pch" 
/Fa"C:\Workspaces\grpExtern\gc_SQLite_main\VC100\Release\\" 
/Fo"C:\Workspaces\grpExtern\gc_SQLite_main\VC100\Release\\" 
/Fd"C:\Workspaces\grpExtern\gc_SQLite_main\VC100\Release\\SQLite.pdb" /Gd 
/FU"C:\Program Files (x86)\Reference 
Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /analyze- 
/errorReport:queue 
Is this a bug or am I doing something wrong?
kind regards,Gert