[sqlite] setup C code with cppunit using test db

2015-08-11 Thread Richard Hipp
On 8/11/15, Adam Devita  wrote:
>
> I get an error stating that MREMAP_MAYMOVE is undeclared. (line 29874)
> I don't see in the source or .h file where it would be defined.
>

It's defined in /usr/include/linux/mman.h on my LTS14.04 box.   And
that file is included from /usr/include/mmap.h which is #included from
sqlite3.c.

-- 
D. Richard Hipp
drh at sqlite.org


[sqlite] setup C code with cppunit using test db

2015-08-11 Thread Adam Devita
Good day,

I'd like to test some C code using the cpputest package.

The code is a simple transaction where 1 prepared update statement
gets various parameters bound and stepped in a loop.

I'd like to make a test db so I can ensure that the code will work
(and there are no syntax errors in the sql)

If I copy the amalgamation (3.8.8) into my test directory, and run the
make (Linux flavour is ubuntu 14.04lts being run on a Oracle virtual
box)

I get an error stating that MREMAP_MAYMOVE is undeclared. (line 29874)
I don't see in the source or .h file where it would be defined.

Has anyone run into this one?  What should I do ?


regards,
Adam DeVita

-- 
--
VerifEye Technologies Inc.
151 Whitehall Dr. Unit 2
Markham, ON
L3R 9T1