[gst-devel] c++ patch

Matt Howell matth at ridgerun.com
Wed Mar 7 02:15:16 CET 2001


tim -

i believe brentb checked in fixes (tag RELEASE-0_1_1-DUCTTAPE)
for these about 9 days ago.  (the version of your gstcaps.h should be 1.18.)
you should have following snippet at the top of the file:

.
.
.
#include <gst/gstprops.h>

typedef struct _GstCaps GstCaps;
typedef gpointer GstCapsFactoryEntry;
#ifdef __cplusplus
typedef GstCapsFactoryEntry * GstCapsFactory;
#else // C++ was unable to compile with this
typedef GstCapsFactoryEntry GstCapsFactory[];
#endif

struct _GstCaps {
.
.
.

maybe try a cvs update?

matt.

> Matt Howell wrote:
>  > attached is a patch to allow c++ (post egcs compilers) to include
> gst/gstpad.h
>
> The patch fixes that error for me.  However, I get a few more errors
> when attempting to compile with gcc 3.0 (from CVS).  Here are the errors:
>
> g++ -I/opt/gcc/include -I/usr/lib/glib/include -I/usr/X11R6/include
> -I/usr/include/gnome-xml -I/opt/gstreamer-cvs/include -D_REENTRANT -fPIC
> -c sample-native.ccIn file included from
> /opt/gstreamer-cvs/include/gst/gst.h:29,
>                   from sample-native.h:11,
>                   from sample-native.cc:3:
> /opt/gstreamer-cvs/include/gst/gstinfo.h: In function `gchar*
>     _gst_debug_nameof_funcptr(void*)':
> /opt/gstreamer-cvs/include/gst/gstinfo.h:142: cannot convert `void*' to
>     `gchar*' in initialization
> In file included from /opt/gstreamer-cvs/include/gst/gstpad.h:39,
>                   from /opt/gstreamer-cvs/include/gst/gst.h:31,
>                   from sample-native.h:11,
>                   from sample-native.cc:3:
> /opt/gstreamer-cvs/include/gst/gstcaps.h: At global scope:
> /opt/gstreamer-cvs/include/gst/gstcaps.h:55: parameter `factory' includes
>     pointer to array of unknown bound `void*[]'
> /opt/gstreamer-cvs/include/gst/gstcaps.h:56: parameter `factory' includes
>     pointer to array of unknown bound `void*[]'
> /opt/gstreamer-cvs/include/gst/gstcaps.h:65: parse error before `typeid'
> In file included from /opt/gstreamer-cvs/include/gst/gst.h:31,
>                   from sample-native.h:11,
>                   from sample-native.cc:3:
> /opt/gstreamer-cvs/include/gst/gstpad.h:326: parameter `factory' includes
>     pointer to array of unknown bound `void*[]'
> make: *** [sample-native.o] Error 1
>
> --
> Tim Taylor
> tim at tool-man.org
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list