Rockbox Development > Starting Development and Compiling

Using C++ for plugin-dev

(1/1)

hydroo:
The Mailinglist didn't handle my message (no response, nothing).
So I'll post here instead:
--

A quick test:
--
MAKE in test1
LD test1.rock
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC
but not for C++
~/prog/rockbox/trunk-plugin-dev/apps/status.h:22: error: use of
enum ‘playmode’ without previous declaration
~/prog/rockbox/trunk-plugin-dev/apps/status.h:22: error: invalid type in
declaration before ‘;’ token
~/prog/rockbox/trunk-plugin-dev/apps/menu.h:82: error: ‘struct
menu_item_ex::::menu_callback_with_desc’ invalid; an
anonymous union can only have non-static data members
~/prog/rockbox/trunk-plugin-dev/apps/menu.h:89: error: ‘struct
menu_item_ex::::menu_get_name_and_icon’ invalid; an
anonymous union can only have non-static data members
main.cpp:6: warning: ‘visibility’ attribute ignored

(I just renamed my source file to .cpp - Seems to be enough to make him build
using g++)

I haven't diged into the details, but there's nothing major standing in the
way is there?

Will it be possible to use c++ in the near future? - Or may I be able to make the changes needed myself (if it's just a little extern "C" e.g.) ?

regards
Ronny

Bagder:

--- Quote from: hydroo on January 22, 2008, 04:02:09 PM ---The Mailinglist didn't handle my message (no response, nothing).

--- End quote ---

I didn't see any such mail on it. Did it really get through?


--- Quote ---Will it be possible to use c++ in the near future?

--- End quote ---

No. Possible in some more distant future? Perhaps.

Navigation

[0] Message Index

Go to full version