[maemo-developers] [maemo-developers] Maemo & C++

From: Timo Savola tsavola at movial.fi
Date: Sat Jun 25 22:51:01 EEST 2005
Jaco du Preez wrote:

> I looked at the Maemo development environment and it looks great.
> Here is the thing, I would like to write applications in C++ and make use of
> OOP, templates and a few other features. I would like to make use of libraries
> such as
> 
> Sigslot - http://sigslot.sourceforge.net/
> ACE - http://ace.sourceforge.net/
> Boost - http://www.boost.org/

If you are using the parts of Boost that are implemented completely with
templates, Boost is only a build-time dependency and its libraries don't
need to exist on the device.  (Same of course applies to other template
libraries aswell.)

If you are using libraries that are not available on the device, you
could always link them statically into your application...

> Is there a way I can develop in C++?
> Perhaps a C++ compiler that I can use that supports the Nokia 770 architecture
> and chipset and that is easily used in the Maemo development environment?

Scratchbox (the maemo development environment) uses GCC toolchains with
C++ language support enabled.  I've understood that the 770 ships with
the C++ runtime libraries included, and I've succesfully compiled and
run C++ applications (which use Boost) on the maemo platform.

On the other hand, the C++ bindings for GTK+ are (probably) not included
and the Hildon framework doesn't have C++ bindings, but using the native
C APIs from C++ code is of course not a problem.

timo

More information about the maemo-developers mailing list