Apparently, I accidentally hijacked another thread with my original post... Sorry about that. Let me try again...

I'm trying to compile a custom video provider, and I'm getting the
following errors:

g++34 -ggdb -Wno-deprecated-declarations -O0 -shared -I./include -I./
include/R3DSDK -I/usr/include/dbus-1.0/ -I/usr/lib/dbus-1.0/include -I/
usr/include/directfb-internal -I/usr/include/directfb -I/usr/include/ -
L./lib  src/idirectfbvideoprovider_r3d.cpp -lR3DSDKv1 -lpthread -l+
+dfb -ldirect -ldirectfb -o r3dvideoprovider.so
In file included from src/idirectfbvideoprovider_r3d.cpp:64:
/usr/include/directfb/direct/interface_implementation.h:40: error:
expected primary-expression before '.' token
/usr/include/directfb/direct/interface_implementation.h:41: error:
expected primary-expression before '.' token
/usr/include/directfb/direct/interface_implementation.h:42: error:
expected primary-expression before '.' token
/usr/include/directfb/direct/interface_implementation.h:43: error:
expected primary-expression before '.' token
/usr/include/directfb/direct/interface_implementation.h:44: error:
expected primary-expression before '.' token


These the offending lines from interface_implementation.h:

static DirectInterfaceFuncs interface_funcs = {
      .GetType            = GetType,
      .GetImplementation  = GetImplementation,
      .Allocate           = Allocate,
      .Probe              = (DirectInterfaceGenericProbeFunc) Probe,
      .Construct          = (DirectInterfaceGenericConstructFunc)
Construct
};



My understanding is that GCC provides support for naming fields in
static initialization of structure and array types, since version
3.4.  I've tried this in a number of G++ versions, and GCC versions,
and all report the same error.

I must be missing a compiler flag or something, but I can't seem to
find it.

Has anyone ran into this previously??

FYI: This is DirectFB 1.3.0, and the latest ++DFB-1.0.0 (but I don't
think I'm using ++dfb in the video provider).


Thanks,

Kyle

_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to