利用VS2008编译SQLite3.6.14.2
通过网上搜索资料总结了SQLite3的编译方法 步骤说明: 1)选择创建一个WIN32智能设备项目; 2)应用程序类型选择:Dll;*如果要创建静态库,则创建一个Win32 Console Application,并将编译类型选为static library。 3)将sqlite3.6.14.2的所有源码均加入工
通过网上搜索资料总结了SQLite3的编译方法
步骤说明:
1)选择创建一个“WIN32智能设备项目”;
2)应用程序类型选择:Dll;*如果要创建静态库,则创建一个Win32 Console Application,并将编译类型选为“static library”。
3)将sqlite3.6.14.2的所有源码均加入工程(到其官方网站上可以下载)。
注意需要将tclsqlite.c、shell.c、fts3.c、fts3.h、fts3_tokenizer1.c、fts3_tokenizer.c、fts3_tokenizer.h去掉。其中tclsqlite.c用于生成基于TCL的API,如果要编译,这需要另外下载tcl.h;shell.c用于生成命令行模式的sqlite.exe,如果是静态库形式则可以选择; 其余的文件还不清楚是什么作用,但如果不去掉的话会产生一个.obj文件重定义的错误。
4) 选中项目(而不是文件),项目->属性->C/C++->预编译头-> 创建/使用预编译头: 选择不使用预编译头。
5) 选中项目(而不是文件),项目->属性->常规->配置类型: 输入“static library”。
6)编译即可生成DLL和LIB文件。
以下为另一篇文章中提供的编译方法(未经尝试):
1)选择创建一个C++ Win32工程;
2)选择Win32 Project模板;
3)选择工程类型(编译目标类型)为Win32 DLL。 *如果要创建静态库,则创建一个Win32 Console Application,并将编译类型选为“static library”。
4)将sqlite3.5.1的所有源码均加入工程。
* 注意需要将tclsqlite.c、shell.c、fts3.c、fts3.h、fts3_tokenizer1.c、fts3_tokenizer.c、fts3_tokenizer.h去掉。其中tclsqlite.c用于生成基于TCL的API,如果要编译,这需要另外下载tcl.h;shell.c用于生成命令行模式的sqlite.exe,如果是静态库形式则可以选择;icu是internationalcomponents forunicode,如果需要则需另外下载相关头文件。
5)选择合适的RuntimeLibrary,默认为多线程模式。位置:Project->Properties->Configuration Properties->C/C++->Code Generation->Runtime Library
6)将编译模式改为c模式(TC)。位置:Project->Properties->Configuration Properties->C/C++->Advanced->Compile As
7)如果想要取得不必要的警告信息,则作如下处理: - 在预处理定义处加 _CRT_SECURE_NO_WARNINGS 位置: Project->Properties->Configuration Properties->C/C++->Preprocessor->Preprocessor Definitions - disable 制定的警告信息(Project->Properties->C/C++->Advanced->Disable Specific Warnings): 4267;4244;4018;4311;4996;4312;4311
8)为避免如下警告(以及相关错误) warning C4013: ‘TryEnterCriticaldiv’ undefined; assuming extern returning int 在os.h的第72行,#include之前加: #define _WIN32_WINNT 0x0400 #define WIN32_LEAN_AND_MEAN 9)OK,编译,即可成功!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



When programming in C++, we often encounter the problem of undeclared identifiers. This usually occurs when undefined variables, functions, or classes are used, causing the compiler to fail to recognize these identifiers, resulting in compilation errors. This article describes common causes of undeclared identifier problems and how to resolve them. Common Causes Undeclared identifier problems usually arise from the following reasons: Variables, functions, or classes are not declared correctly: You should declare variables, functions, or classes before using them. If the variable is not declared or function

In recent years, Go language has become the choice of more and more developers. However, compared to other programming languages, the compilation speed of Go language is not fast enough. Many developers will encounter this problem when compiling Go programs: Why does my Go program take longer to compile? This article will explore this issue from several aspects. The compiler architecture of Go language The compiler architecture of Go language adopts a three-stage design, which are front-end, middle layer and back-end. The front-end is responsible for translating the source code into intermediate code in Go language, and the middle layer will

Reasons: 1. There are many versions of Linux, but each version uses different software or kernel versions, and the environment that the binary package depends on may not be able to run normally, so most software directly provides source code for compilation and installation. 2. Easy to customize to meet different needs. 3. Convenient for operation and maintenance and developer maintenance; source code can be packaged as binary, but packaging this software will require costly extra work, including maintenance, so if it is source code, the software manufacturer will maintain it directly.

Java is a very popular programming language that is widely used to develop various types of software. In Java development, compilation and decompilation technology are very important links. Compilation technology is used to convert Java code into executable files, while decompilation technology allows one to convert executable files back into Java code. This article will introduce compilation and decompilation techniques in Java. 1. Compilation technology Compilation is the process of converting high-level language (such as Java) code into machine language. in Java

How to use GitLab for project document management 1. Background introduction In the software development process, project documents are very important information. They can not only help the development team understand the needs and design of the project, but also provide reference to the testing team and customers. In order to facilitate version control and team collaboration of project documents, we can use GitLab for project document management. GitLab is a version control system based on Git. In addition to supporting code management, it can also manage project documents. 2. GitLab environment setup First, I

C++ compilation error: The function parameter list is too long, how to solve it? When writing programs in C++, you sometimes encounter such a compilation error: the function parameter list is too long. For C++ beginners, this may be a headache. Next, we’ll cover the causes and solutions to this problem. First, let's take a look at the basic rules of C++ function parameters. In C++, function parameters must be declared between the function name and the opening parenthesis. When you pass a function parameter, you tell the function what to do. These parameters can be any

The go language can be compiled. Go language is a compiled static language, a programming language that requires compilation to run. There are two commands for compiling Go language programs: 1. "go build" command, which can compile Go language program code into a binary executable file, but the binary file needs to be run manually; 2. "go run" command, The Go language program will be run directly after compilation. A temporary file will be generated during the compilation process, but an executable file will not be generated.

As a world-renowned short video social platform, Douyin has won the favor of a large number of users with its unique personalized recommendation algorithm. This article will delve into the value and principles of Douyin video recommendation to help readers better understand and make full use of this feature. 1. What is Douyin recommended video? Douyin recommended video uses intelligent recommendation algorithms to filter and push personalized video content to users based on their interests and behavioral habits. The Douyin platform analyzes users' viewing history, like and comment behavior, sharing records and other data to select and recommend videos that best suit users' tastes from a huge video library. This personalized recommendation system not only improves user experience, but also helps users discover more video content that matches their preferences, thereby enhancing user stickiness and retention rate. at this
