I recently the dc1394 development package, libdc1394-devel, from the OpenSUSE mirror http://download.opensuse.org/distrib...10.2/repo/oss/
This library is install in the /usr/include/dc1394 directory off of the root, and includes a header file named dc1394_control.h Whenever I try to compile code that includes this library, I get the following errors
/usr/include/dc1394/dc1394_control.h:266: error: expected identifier before numeric constant
/usr/include/dc1394/dc1394_control.h:266: error: expected `}' before numeric constant
/usr/include/dc1394/dc1394_control.h:266: error: expected unqualified-id before numeric constant
/usr/include/dc1394/dc1394_control.h:300: error: expected declaration before ‘}’ token
Which is related to the beginning and end of a block in dc1394_control.h of code I have posted below
There are numerous typedef enum statements through this header that are almost identical in structure, but this is the only one producing errors. Not sure if that might be because I am not using the rest of the typedef enum statements in my actual code.Code:typedef enum { DC1394_SUCCESS = 0, /* Success is zero */ //This is line 266 DC1394_FAILURE, /* Errors are positive numbers */ DC1394_NO_FRAME = -2, /* Warnings or info are negative numbers */ DC1394_NO_CAMERA = 3, DC1394_NOT_A_CAMERA, DC1394_FUNCTION_NOT_SUPPORTED, DC1394_CAMERA_NOT_INITIALIZED, DC1394_INVALID_FEATURE, DC1394_INVALID_VIDEO_FORMAT, DC1394_INVALID_VIDEO_MODE, DC1394_INVALID_FRAMERATE, DC1394_INVALID_TRIGGER_MODE, DC1394_INVALID_TRIGGER_SOURCE, DC1394_INVALID_ISO_SPEED, DC1394_INVALID_IIDC_VERSION, DC1394_INVALID_COLOR_CODING, DC1394_INVALID_COLOR_FILTER, DC1394_INVALID_CAPTURE_MODE, DC1394_REQ_VALUE_OUTSIDE_RANGE, DC1394_INVALID_ERROR_CODE, DC1394_MEMORY_ALLOCATION_FAILURE, DC1394_TAGGED_REGISTER_NOT_FOUND, DC1394_FORMAT7_ERROR_FLAG_1, DC1394_FORMAT7_ERROR_FLAG_2, DC1394_INVALID_BAYER_METHOD, DC1394_INVALID_ARGUMENT_VALUE, DC1394_INVALID_VIDEO1394_DEVICE, DC1394_NO_ISO_CHANNEL, DC1394_NO_BANDWIDTH, DC1394_IOCTL_FAILURE, DC1394_CAPTURE_IS_NOT_SET = -30, DC1394_RAW1394_CAPTURE_FAILURE = 31, DC1394_CAPTURE_IS_RUNNING, DC1394_RAW1394_FAILURE } dc1394error_t; //This is line 300 #define DC1394_ERROR_NUM DC1394_RAW1394_FAILURE+1
I cannot figure out what is wrong with this code. Any help would be greatly appreciated.
Thanks.



LinkBack URL
About LinkBacks



CornedBee