ext Jaco du Preez wrote:

Hi,

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/

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?

Regards,
Yocto




_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers

Hi,

The development environment has gcc compiler system which
includes g++ compiler. I don't see a reason why it wouldn't work
on the device unless someone have ripped the c++ runtime libraries
out that I tend to doubt (please correct me if I am wrong, even if
that would be the case, there is the option to statically link them).

Just a quick hello-world -type try in my scratchbox environment:
[sbox-sbox-qemu-new: ~] > nano hello.cpp
[sbox-sbox-qemu-new: ~] > more hello.cpp
#include <iostream>
#include <string>

using namespace std;

class a {
public:
  a(){s = "world"; cout << s << endl; }
  ~a(){s = "";}
private:
  string s;
};

class b: public a {
public:
  b(){}
  ~b(){cout << "bye" << endl;}
};

int main(void){
  cout << "Hello ";
  b test;
  return 0;
}
[sbox-sbox-qemu-new: ~] > [sbox-sbox-qemu-new: ~] > ./hello
Hello world
bye
[sbox-sbox-qemu-new: ~] >

So at least in scratchbox, seems to work fine.

Best Regards,
Karoliina Salminen


_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to