T
T
tsvetta2014-02-19 01:31:56
C++ / C#
tsvetta, 2014-02-19 01:31:56

How to connect SQLite to Visual C++ (MS Visual C++ 2010)?

I'm making an interface for working with a database. Windows Forms project.
Downloaded sources from site sqlite.org/download.html (sqlite-amalgamation-3080301.zip).
I add header files and source code files to the project (I specify in them that it is necessary to compile as C ++ code (/TP)) - it produces a huge bunch of errors in the source codes, and at the end:

fatal error C1903: unable to recover from previous errors; stop compilation

Problem in adding C-files to Cpp-files?
What could be the reasons/alternative solutions? Am I missing something? The third day nothing from Google can not be achieved.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2014-02-19
@makol

msdn.microsoft.com/en-us/library/bb882660%28v=vs.1... if not
then technet.microsoft.com/en-us/ms772425?WT.mc_id=SMCf...

A
Alexander Grebenshchikov, 2014-02-19
@archerz

Maybe on the contrary, you need to specify that you need to compile as C code, and not C ++ (Compile as C Code (/TC)). I also think you need to disable the use of Precompiled Headers in sqlite.c (Not Using Precompiled Headers)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question