Note that there are some explanatory texts on larger screens.

plurals
  1. POVS C++ 6.0 with sqlite *.dll
    primarykey
    data
    text
    <p>I'm total noob in VS usage, especially in 6.0 version. I want to create first project in C++ that uses sqlite library. Firstly I downloaded *.dll file from <a href="http://www.sqlite.org/download.html" rel="nofollow noreferrer">here</a>. Now I want to use its library in project. Here's my simple code:</p> <pre><code>#include "stdafx.h" #include &lt;stdio.h&gt; #include &lt;sqlite3.h&gt; int main(int argc, char* argv[]) { printf("Hello World!\n"); return 0; } </code></pre> <p>How can I add this *.dll file to make sqlite3.h file visible?</p> <hr> <p>UPDATE 1</p> <p>I downloaded amalgamation file and added *.c and *.h file to project like that:</p> <p><img src="https://i.stack.imgur.com/irIrn.png" alt="enter image description here"></p> <p>But I'm getting errors and many of warnings:</p> <pre><code> --------------------Configuration: DBApp - Win32 Debug-------------------- Compiling... StdAfx.cpp Compiling... DBApp.cpp C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MOJE DOKUMENTY\POBIERANIE\DBApp\DBApp.cpp(6) : fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory Generating Code... Compiling... sqlite3.c c:\documents and settings\administrator\moje dokumenty\pobieranie\sqlite-src\sqlite3.c(238) : warning C4005: 'SQLITE_DEFAULT_PAGE_SIZE' : macro redefinition c:\documents and settings\administrator\moje dokumenty\pobieranie\sqlite-src\sqlite3.c(234) : see previous definition of 'SQLITE_DEFAULT_PAGE_SIZE' c:\documents and settings\administrator\moje dokumenty\pobieranie\sqlite-src\sqlite3.c(253) : warning C4005: 'SQLITE_MAX_DEFAULT_PAGE_SIZE' : macro redefinition c:\documents and settings\administrator\moje dokumenty\pobieranie\sqlite-src\sqlite3.c(249) : see previous definition of 'SQLITE_MAX_DEFAULT_PAGE_SIZE' c:\documents and settings\administrator\moje dokumenty\pobieranie\sqlite-src\sqlite3.c(283) : warning C4005: 'SQLITE_MAX_TRIGGER_DEPTH' : macro redefinition c:\documents and settings\administrator\moje dokumenty\pobieranie\sqlite-src\sqlite3.c(281) : see previous definition of 'SQLITE_MAX_TRIGGER_DEPTH' ... c:\documents and settings\administrator\moje dokumenty\pobieranie\sqlite-src\sqlite3.c(105419) : warning C4005: 'MIN' : macro redefinition c:\documents and settings\administrator\moje dokumenty\pobieranie\sqlite-src\sqlite3.c(45386) : see previous definition of 'MIN' c:\documents and settings\administrator\moje dokumenty\pobieranie\sqlite-src\sqlite3.c(108807) : fatal error C1010: unexpected end of file while looking for precompiled header directive Generating Code... Error executing cl.exe. DBApp.exe - 2 error(s), 232 warning(s) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload