I have class that I want to use with libvlc (well it is not a backend
for wx but a class I want to use in my MM app)
I want to take advantage of stuffs in wxMediaBackendCommonBase but
each time I use it is not recognized. It seems even media state is not
recognized and anything to do with header is not recognized.
If I do something like
class wxVLCBackend : public wxMediaBackendCommonBase{.......};
I get errors
/home/stefano/Documents/developer/Hosanna/Kasuku/Application/backend.h:
11:1: error: expected class-name before ‘{’ token
/home/stefano/Documents/developer/Hosanna/Kasuku/Application/backend.h:
39:10: error: ‘wxMediaState’ does not name a type
But if I change it to wxPanel/wxString/wxControl (for testing purpose)
It works well!
class wxVLCBackend : public wxPanel{.....};
No error!
Why is that anything in wx/mediactrl is not recognized? setup.h have
Mediactrl enabled and here is relevant part
#ifndef __WXVLCBACKEND_H__
#define __WXVLCBACKEND_H__
#include <wx/wx.h>
#include <vlc/vlc.h>
#include <wx/mediactrl.h>
class wxVLCBackend : public wxMediaBackendCommonBase
{
public:
wxVLCBackend();
~wxVLCBackend();
//..............................
};
full code
http://pastebin.com/z8UKGd9y