[maemo-developers] [maemo-developers] Maemo & C++
From: Karoliina T. Salminen karoliina.t.salminen at nokia.comDate: Wed Jun 29 12:56:39 EEST 2005
- Previous message: [maemo-developers] Maemo & C++
- Next message: [maemo-developers] Maemo & C++
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 >maemo-developers at maemo.org >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
- Previous message: [maemo-developers] Maemo & C++
- Next message: [maemo-developers] Maemo & C++
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]