SQLite Third Lesson source code compilation error and solve

Source: Internet
Author: User
Tags deprecated sqlite

1)Fts2 has a designflaw and have been deprecated

2)Fts1 has a designflaw and have been deprecated

solution:

parse: fts1 There are design flaws that are now obsolete and have been provided Fts3 Fts1 sqlite_core

VS 's basic settings: Properties "C + +" "preprocessor" preprocessor definition

3)cannot open includefile: ' unicode/utypes.h ': No such file or directory

Fts1 caused by disabling Fts1 smooth compilation passed.

fts1 There is a design flaw that causes a database error ( Databasecorruption highly recommend discarding the module instead of fts3 dsqlite_enable_ Broken_fts1=1 to compile options.

The FTS1 module will be compiled as an extension module (when Sqlite_core is not defined).

In addition, if Sqlite_enable_fts1 is defined,FTS1 is also compiled into the SQLite kernel.

4) Error:no Module:rtree

sqlite3.exe The console program is not carrying the rtree module, if you need to enable the module, you need to call the precompiled definition: Sqlite_enable_rtree, shell.c regenerate the program.

5) Console program

set up an empty console, and then import the SQLite source code, compile the following error:

Error LNK2019: unresolved external symbol [email protected], the symbol in function ___tmaincr ...

The first step: c++/ Pre-compilation, add:sqlite_enable_rtree parameter Support RTREE

Step two: If it is a console program:

1. Select Project->properties in the menu , pop up the property Pages window

2. Configurationproperties->c/c++->preprocessor, Preprocessordefinitions _ Windows,  add _console.

3. In the left column, select:configurationproperties->linker->system, then in the right column SubSystem the corresponding item to CONSOLE (/subsystem:console)

6)unexpected end offile while looking for precompiled header. Did you forget to add ' #include "stdafx.h" ' to your source?

SQLite Source code can not invoke pre-compilation processing, because sqlite source code is pure C language, can not get VC + + pre-compilation benefits.

FIX: Properties " C + +"Precompiled Headers" create, use precompiled headers (without precompiled headers)


SQLite Third Lesson source code compilation error and resolution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.