Tthe documentation says to use the flag as?
-DSQLITE_USER_AUTHENTICATION

whereas in your message you said you used?
-D_SQLITE_USER_AUTHENTICATION

So unless cl ignores a leading underscore (seems unlikely), you're defining 
something the code doesn't care about.


    On Monday, March 14, 2016 10:26 AM, siddharth kotian <siddse7en at 
gmail.com> wrote:


 Thanks, It works now.


On Mon, Mar 14, 2016 at 10:06 PM, syl leo <syleo2002 at yahoo.fr> wrote:

> Hi,
> In your c++ program, if you use directly sqlite.c and .h and not the
> dll+lib, you should remove the sqlite3.lib in your link.(project properties
> -> linker -> input)
> No ?
> Regards.
> Sylvain.
>
>? ? ? De : siddharth kotian <siddse7en at gmail.com>
>? ? : sqlite-users at mailinglists.sqlite.org
>? Envoy? le : Lundi 14 mars 2016 13h39
>? Objet : [sqlite] SQLITE_USER_AUTHENTICATION
>
> Hi,
>
> I have downloaded the SQLITE amalgamation folder along with the entire
> source code.
>
> Followed the steps mentioned here
> http://www.sqlite.org/src/doc/trunk/ext/userauth/user-auth.txt
>
> Using the following command to build the sqlite3.exe:-
>
> cl -D_SQLITE_USER_AUTHENTICATION shell.c sqlite3.c userauth.c
> -Fesqlite3.exe
>
> But i can still open the database with sqlite3_open_v2. No authentication
> is required.
>
> Another problem is that I am trying to add a user to the sqlite_user table.
> I have appended userauth.c to the sqlite3.c amalgamation and have provided
> sqlite3userauth.h to the C++ program.
> I am able to access sqlite_user_add method but it gives error lnk1181:
> cannot find sqlite3.lib
>
> I am using VS2012, x64, Release Mode.
>
> Regards,
> Siddharth
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>
>
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users at mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users



Reply via email to