Re: [sqlite] problem of creation of a data base

2005-07-28 Thread LURKIN Denis

Thank you for your assistance, all functions very well thanks to you!

I had to add:

extern "C" {
#include "os.h"
}

Excuse me if I have a little difficulties of
understanding, I am newbie with Sqlite.

Yours sincerely,

Denis Lurkin.



Re: [sqlite] problem of creation of a data base

2005-07-28 Thread Gerald Dachs
> I tested with:
>
> extern "C"
> {
> #include 
> }
>
> but I always have the following error:
>
> ZeroLink: unknown symbol '__Z21sqlite3OsFullPathnamePKc'
>
> What to make?

I have expected that the definition is in sqlite3.h, what is not
the case. Try it with "os.h".

Anway, I believe that already my first mail should have shown
you the way to go.

Gerald



Re: [sqlite] problem of creation of a data base

2005-07-28 Thread Gerald Dachs
> I added:
>
> extern "C"
> {
> #include 
> }

I wrote this in the moment when the loudspeakers at the walls
told us all to leave the building, because of a technical problem.

> and I have a problem of compilation:
>
> sqlite.h: No such file or directory
>
>
> I tested with:
>
> extern "C"
> {
> #include 
> }

So there is no need to complain because of an obvious mistake.

Gerald



Re: [sqlite] problem of creation of a data base

2005-07-28 Thread LURKIN Denis

I added:

extern "C"
{
#include 
}

and I have a problem of compilation:

sqlite.h: No such file or directory


I tested with:

extern "C"
{
#include 
}

but I always have the following error:

ZeroLink: unknown symbol '__Z21sqlite3OsFullPathnamePKc'

What to make?

Thank you.

Denis Lurkin.



Re: [sqlite] problem of creation of a data base

2005-07-28 Thread Gerald Dachs
> Hello,
>
> I receive this error:
>
> ZeroLink: unknown symbol '__Z21sqlite3OsFullPathnamePKc'
>
> Why?

name mangling, use:

extern "C" {
#include 
}

Gerald



[sqlite] problem of creation of a data base

2005-07-28 Thread LURKIN Denis

Hello,

I created a new project to which I included all the source
files SQLITE 3.2.2

I have make a class DATABASE in which I created a method to
create the base of data.

int SqliteDatabase::create(const char *DbName)
{
int readOnly = 0;
int rc = 0;
char *zFullPathname = 0;
OsFile fd;
memset(, 0, sizeof(fd));
if( sqlite3_malloc_failed )
{
return SQLITE_NOMEM;
}   

zFullPathname = sqlite3OsFullPathname(DbName);
if( zFullPathname ) 

{
rc = sqlite3OsOpenReadWrite(zFullPathname, , );
}   
return rc;  
}

When I make an object DATABASE,

Database dbTemp;

Then I make the create,

dbTemp.create("tempoDB");

I receive this error:

ZeroLink: unknown symbol '__Z21sqlite3OsFullPathnamePKc'

Why?
the method must be known because all the source files are
included in the project...

Thank you in advance,

Denis Lurkin.