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



On Mon, 2011-10-17 at 07:49 -0400, Phong Cao wrote:
> #include <gdk/gdkx.h>
> [snip]

> Not sure what went wrong though but I think something is defining
> Status as an int inside <gtkmm.h>,

No, that is not likely.

>  and there may also be a variable called Status in <gdk/gdkx.h>.

Yes, there is probably a Status macro #define in the X11 header. That
header is famously bad, and that's why there is a separate gdkx.h file.
You just need to include that file last.

>  When I dont #include <gdk/gdkx.h> I do not receive the error, but my
> source code won't compile because it uses the GDK_WINDOW_XID()
> function. All the classes and global variables in my codes are nested
> inside a namespace called "Dingo::" so it can not collapse with the
> enum Status in types.h. 

It's a C pre-processor macro. It is completely unaffected by C++
namespaces.

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



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