Igor Korot <ikoro...@gmail.com> wrote:
> But C program should compile fine whether you use C or C++ compiler.
> 
> Is it not?

No. A valid C program doesn't have to be a valid C++ program. As a simplest 
example, C allows implicit conversion from void* to any other pointer type, 
while C++ does not. So it's common to see things like

int* p = malloc(100 * sizeof(int));

which is valid C but invalid C++.

> Basically I'm trying to embed SQLite into C++ application and following
> advice just embedded the code in the project.

Normally, a file with .c extension would be processed by a C compiler, unless 
explicitly configured otherwise.
-- 
Igor Tandetnik

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

Reply via email to