Compile Problem - 'sqlite_compile' : undeclared identifier

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile Problem - 'sqlite_compile' : undeclared identifier

Mark Anderson-2
Hello All -

I'm trying to incorporate sqlite3 into a Visual C++ project but am
having some problems
compiling the project. I'm made sure to include the sqlite3.h header and
I created a .lib
file which is being linked in, but the compiler still complains with the
following:

c:\data\work\3pl\dev\whgui\httpd.h(24) : error C2065: 'sqlite_compile' :
undeclared identifier
c:\data\work\3pl\dev\whgui\httpd.h(26) : error C2065: 'sqlite_step' :
undeclared identifier
c:\data\work\3pl\dev\whgui\httpd.h(34) : error C2065: 'sqlite_finalize'
: undeclared identifier

Which is odd, because it handles sqlite3_open() and sqlite3_close() just
fine. I'm sure I'm
missing something elementary but could anyone point me in the right
direction?

Mark.
Reply | Threaded
Open this post in threaded view
|

Re: Compile Problem - 'sqlite_compile' : undeclared identifier

Dan Kennedy

The missing symbols are from sqlite version 2, not 3.


--- Mark Anderson <[hidden email]> wrote:

> Hello All -
>
> I'm trying to incorporate sqlite3 into a Visual C++ project but am
> having some problems
> compiling the project. I'm made sure to include the sqlite3.h header and
> I created a .lib
> file which is being linked in, but the compiler still complains with the
> following:
>
> c:\data\work\3pl\dev\whgui\httpd.h(24) : error C2065: 'sqlite_compile' :
> undeclared identifier
> c:\data\work\3pl\dev\whgui\httpd.h(26) : error C2065: 'sqlite_step' :
> undeclared identifier
> c:\data\work\3pl\dev\whgui\httpd.h(34) : error C2065: 'sqlite_finalize'
> : undeclared identifier
>
> Which is odd, because it handles sqlite3_open() and sqlite3_close() just
> fine. I'm sure I'm
> missing something elementary but could anyone point me in the right
> direction?
>
> Mark.
>



       
               
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com