Hi, Thanks for the response. That worked. Don't do enough work between C++ and C to remember to use the #ifdef statements. Only 1 problem, the database can still be opened and the data viewed by other programs that are not compiled with SQLITE_USER_AUTHENTICATION. I am testing with SQLite Studio. It doesn't see the password table, but does see all of the data, even data that is actively changed from the application. Is there a better way to do this? What I am trying to do is hide my data.
Thanks Andrew -----Original Message----- From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On Behalf Of Dan Kennedy Sent: Tuesday, February 21, 2017 10:13 AM To: sqlite-users@mailinglists.sqlite.org Subject: Re: [sqlite] Unresolved External sqlite3_user_add On 02/22/2017 12:47 AM, Andrew Stewart wrote: > Hi, > I am trying to add the authentication extension in and I am > getting this message. I have included the 'userauth.c' at the bottom of the > amalgamation. I have included 'sqlite3userauth.h' at the bottom of > sqlite3.h. It finds it during the compile, but does not find it during the > link. I added "pragma message()" lines to the sqlite3.c code to see that it > was going into this block and it was. Have tried everything else that I can > think of and still no luck. > Any help would be appreciated. Is SQLITE_USER_AUTHENTICATION defined at build time? Or, are you using a C++ compiler? If so, you might need to add one of those [extern "C"] blocks around the contents of sqlite3userauth.h. i.e. #ifdef __cplusplus extern "C" { #endif // contents of sqlite3userauth.h #ifdef __cplusplus } #endif Or just insert sqlite3userauth.h inside the [extern "C"] block that is already in sqlite3.h. Dan. > > Thanks, > Andrew Stewart > Software Designer > > > Notice: This electronic transmission contains confidential information, > intended only for the person(s) named above. If you are not the intended > recipient, you are hereby notified that any disclosure, copying, > distribution, or any other use of this email is strictly prohibited. If you > have received this transmission by error, please notify us immediately by > return email and destroy the original transmission immediately and all copies > thereof. > _______________________________________________ > sqlite-users mailing list > sqlite-users@mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users