Re: gstreamermm: source file error: '/usr/include/gdkmm-2.4/gdkmm/types.h'



On Sat, 2011-10-15 at 16:29 -0400, Phong Cao wrote:
> 
> I am trying to create a small music player program in
> GStreamermm-0.10. I did according to the example provided in
> gtkmm-0.10-10 source code. However, when I tried to compiled, the
> program gave the following error:
> 
> g++ -Wall -g -c /home/phongcao/dingo/dingo-backend.cc `pkg-config
> --cflags --libs gtkmm-2.4 taglib gstreamermm-0.10 gtk+-2.0`
> In file included from /usr/include/gdkmm-2.4/gdkmm/region.h:66:0,
>                  from /usr/include/gdkmm-2.4/gdkmm/screen.h:32,
>                  from /usr/include/gdkmm-2.4/gdkmm.h:27,
>                  from /usr/include/gtkmm-2.4/gtkmm.h:89,
>                  from /home/phongcao/dingo/dingo-backend.h:25,
>                  from /home/phongcao/dingo/dingo-backend.cc:1:
> /usr/include/gdkmm-2.4/gdkmm/types.h:189:6: error: expected identifier
> before ‘int’

That line is probably this:
enum Status

So it looks like something is #defining Status as int. This is probably
in your own code or something that you #include.

Can you actually build the gstreamermm examples?

If the problem is in something that you #include, you should a) File a
bug about it, and b) #include that file as late as possible, as a little
as possible.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]