Re: [sqlite] Compiling as part of MFC C++ project

2010-07-14 Thread GHCS Software
Thanks. That took care of it. I'm revamping a Windows app that I wrote 6 
or 7 years ago and that was the last time I used Visual C++ for much of 
anything. I just wasn't sure about mixing C and C++ code in a single build.

Doug Gordon
*GHCS Software*


From: Jim Morris 

You need to use the project properties to set the file as a C file and 
to not use precompiled headers

On 7/13/2010 5:47 PM, GHCS Software wrote:

> > What do I need to do to get sqlite3.c to compile in a MFC C++ project
> > (Visual C++)? If I just add it to the project, I end up getting a
> > compile error something like: "Unexpected end of file while searching
> > for pre-compiled header directive".
> >
> > Do I need to rename it "sqlite3.cpp" and put the include of
> > at the top? Or what??
> >
>   



___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling as part of MFC C++ project

2010-07-13 Thread John Drescher
>> What do I need to do to get sqlite3.c to compile in a MFC C++ project
>> (Visual C++)? If I just add it to the project, I end up getting a
>> compile error something like: "Unexpected end of file while searching
>> for pre-compiled header directive".
>>
>
> This is a basic Visual C++ question.
>
> http://www.delphifaq.com/faq/f923.shtml
>
Sorry for the noise. I guess I should not try reading mail while
playing a flash game in a second window..
John
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling as part of MFC C++ project

2010-07-13 Thread Jim Morris
You need to use the project properties to set the file as a C file and 
to not use precompiled headers

On 7/13/2010 5:47 PM, GHCS Software wrote:
> What do I need to do to get sqlite3.c to compile in a MFC C++ project
> (Visual C++)? If I just add it to the project, I end up getting a
> compile error something like: "Unexpected end of file while searching
> for pre-compiled header directive".
>
> Do I need to rename it "sqlite3.cpp" and put the include of
> at the top? Or what??
>
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling as part of MFC C++ project

2010-07-13 Thread John Drescher
> What do I need to do to get sqlite3.c to compile in a MFC C++ project
> (Visual C++)? If I just add it to the project, I end up getting a
> compile error something like: "Unexpected end of file while searching
> for pre-compiled header directive".
>

This is a basic Visual C++ question.

http://www.delphifaq.com/faq/f923.shtml

John
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Compiling as part of MFC C++ project

2010-07-13 Thread GHCS Software
What do I need to do to get sqlite3.c to compile in a MFC C++ project 
(Visual C++)? If I just add it to the project, I end up getting a 
compile error something like: "Unexpected end of file while searching 
for pre-compiled header directive".

Do I need to rename it "sqlite3.cpp" and put the include of  
at the top? Or what??
-- 
Doug Gordon
*GHCS Software*
http://www.ghcssoftware.com
g...@ghcssoftware.com 

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users