Further inspection showed that there is a macro that is added, and not the 
stdafx.h file name, the macro is 
'%(PrecompiledHeaderFile);%(ForcedIncludeFiles)'. Nevertheless, VS10 still 
complains with the following error:
fatal error C1853: 'Debug\vsSamiira.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).

How do I solve this problem?

Genius might have limitations, but stupidity is no handicap
Eat Kosher


-----Original Message-----
From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] 
On Behalf Of Michael Schlenker
Sent: Tuesday, November 13, 2012 8:57 AM
To: General Discussion of SQLite Database
Subject: Re: [sqlite] VC++ and SQLite

Am 13.11.2012 14:33, schrieb Arbol One:
> I would also keep this feature, however, in the case of SQLite3 
> amalgamation, I am really confused. You know how we have to #include 
> the 'stdafx.h' in every declaration file (making it non-portable 
> code), i.e. .c, .cpp, etc., well, I tried doing the same thing with 
> sqlite.c, but VS10 complains about it.

You can do that without making it non portable by adding /FI to your compile 
line:
http://msdn.microsoft.com/en-us/library/8c5ztk84%28v=vs.71%29.aspx

Try /FI "stdafx.h"

Michael

> 
> What a nightmare Visual Studio is >:(
> 
> Genius might have limitations, but stupidity is no handicap Eat Kosher
> 
> -----Original Message----- From: sqlite-users-boun...@sqlite.org 
> [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of John Drescher
> Sent: Monday, November 12, 2012 7:44 PM To: General Discussion of 
> SQLite Database Subject: Re: [sqlite] VC++ and SQLite
> 
> On Mon, Nov 12, 2012 at 1:52 PM, Doug Nebeker <pa...@poweradmin.com>
> wrote:
>> You might be surprised at the speed increase you see in compile time 
>> if you've got large projects.  The time isn't lost to CPU as much, 
>> but disk I/O time adds up when hitting many hundreds of small
>> (header) files (even with an SSD).
>> 
> 
> This is why I use PCH. Building some of my projects take a long time 
> even on a 12 threaded processor with multiple SSDs.
> 
> 
> -- John M. Drescher _______________________________________________
> 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
> 


--
Michael Schlenker
Software Architect

CONTACT Software GmbH           Tel.:   +49 (421) 20153-80
Wiener Straße 1-3               Fax:    +49 (421) 20153-41
28359 Bremen
http://www.contact.de/          E-Mail: m...@contact.de

Sitz der Gesellschaft: Bremen
Geschäftsführer: Karl Heinz Zachries, Ralf Holtgrefe Eingetragen im 
Handelsregister des Amtsgerichts Bremen unter HRB 13215 
_______________________________________________
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