← Back to team overview

multi-touch-dev team mailing list archive

Re: not able to compile using arm-linux-g++

 

Henrik Rydberg wrote:
On Thu, Dec 16, 2010 at 08:44:47PM +0100, Armando Visconti wrote:
All,

I'm trying to link a simple application that is using
mtdev_open() with mtdev library, and I would like to do it using the cpp
compiler.

It is failing, and it looks to me that you need to add the
extern "C" before the routines declaration in mtdev.h.

I added the following patch, which seems to fix the problem.
Or am I missing anything?

Hi Armando,

The preprocessor directives can be found in mtdev 1.1, which will
arrive in natty alpha 2. You can also use them immediately from the
utouch unstable ppa.

OK, I saw it. Very good!
Thanks very much Henrik!

Armando




--
-- "Every step appears to be the unavoidable consequence of the
-- preceding one." (A. Einstein) --
Armando Visconti                  Mobile: (+39) 346 8879146
Senior SW Engineer                Fax:    (+39) 02 93519290
CPG                               Work:   (+39) 02 93519683
Computer System Division          e-mail: armando.visconti@xxxxxx
ST Microelectronics               TINA:   051  4683




References