> Im using MSVS 2010 for an c++ GUI project.
> After including sqlite3.h and sqlite3.c from the amalgamation-3071200
> and with the Project Properties--> C/C++  --> Precompiled Headers -->
> Precompiled Header --> Use (/Yu)
> I get the error
> sqlite3.c : fatal error C1853: 'Debug\Contegos_UI.pch' precompiled
> header file is from a previous version of the compiler, or the
> precompiled header is C++ and you are using it from C (or vice versa)

> If I change to Precompiled Header --> Create (/Yc)
> I get the error
> sqlite3.c(136660): error C2857: '#include' statement specified with the
> /YcStdAfx.h command-line option was not found in the source file

> How can I solve this problem ?

cl /nologo /Oxity /Ob2 /GLFAy /MD sqlite3.c /Fesqlite3.dll

add defines as required or

cl /nologo /D_HAVE_SQLITE_CONFIG_H /Oxity /Ob2 /GLFAy /MD sqlite3.c 
/Fesqlite3.dll

and put your sqlite #define's in "config.h"




_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to