Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Using C++ for plugin-dev
« previous next »
  • Print
Pages: [1]

Author Topic: Using C++ for plugin-dev  (Read 1372 times)

Offline hydroo

  • Member
  • *
  • Posts: 7
Using C++ for plugin-dev
« on: January 22, 2008, 04:02:09 PM »
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
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Using C++ for plugin-dev
« Reply #1 on: January 22, 2008, 04:50:19 PM »
Quote from: hydroo on January 22, 2008, 04:02:09 PM
The Mailinglist didn't handle my message (no response, nothing).

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?

No. Possible in some more distant future? Perhaps.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Using C++ for plugin-dev
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.062 seconds with 15 queries.