Hello Seak,

Try doing the following,

1. In your project select and right click on the sqlite3.c file.
2. Then click on the 'Properties' on the drop down menu.
3. When the 'sqlite3.c Property Pages' dialog opens up, click on the 'C/C++'
tree node.
4. Next click on the 'Advanced' item in the 'C/C++' tree node.
5. In the right pane of the dialog locate the 'Compile As' item. I suspect
that it is set to 'Compile as C++ code (/TP)'. If that is the case then you
could click on it and another drop down should appear from which you should
select the 'Compile as C Code (/TC)' option.

That should take care of your compiler errors.

Thank you and regards,
Subhadeep Ghosh.

On Thu, Jul 8, 2010 at 4:24 AM, smengl90 <
fixed-term.seak.meng...@us.bosch.com> wrote:

>
> Still doesn't work. Do I need the precompiled binaries at all? or including
> sqlite3.c and sqlite3.h found in the amalgamation is enough?
>
>
>
> SimonDavies wrote:
> >
> > On 7 July 2010 18:19, smengl90 <fixed-term.seak.meng...@us.bosch.com>
> > wrote:
> >>
> >> Ok, I did just that, but now I get errors when compiling, all related to
> >> the
> >> malloc operations.
> >>
> >> 1>Compiling...
> >> 1>TestSqlite.cpp
> >> 1>c:\documents and settings\las1pal\my documents\visual studio
> >> 2008\projects\sqlite3\sqlite3.c(12281) : error C2440: '=' : cannot
> >> convert
> >> from 'void *' to 'char *'
> > .
> > .
> > .
> > .
> >> .......
> >>
> >> Is it because I include a .c source file in a c++ project?
> >
> > Maybe - have you marked that 1 file as 'compile as c code'?
> >
> > (Properties -> C/C++ -> Advanced tab)
> >
> >>
> >> Thanks
> >>
> >
> > Regards,
> > Simon
> > _______________________________________________
> > sqlite-users mailing list
> > sqlite-users@sqlite.org
> > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/setup-sqlite-in-vc%2B%2B-tp29086729p29099999.html
> Sent from the SQLite mailing list archive at Nabble.com.
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to