reassign 458870 libmms-dev found 458870 0.4-1 retitle 458870 Use of C++ keyword this in header files tags 458870 +patch thankyou
Hi! Please note that the build error for mimms is caused due to the use of `this' in the mms.h and mmsh.h. I have attached a patch to fix this. > g++ -c -pipe -fpermissive -O2 -Wall -W -D_REENTRANT -DQT_SHARED -DQT_NO_DEBUG > -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. > -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. > -Ilibmms-workaround -I/usr/include/libmms -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I. -I. -o mimms.o mimms.cpp > In file included from /usr/include/libmms/mmsio.h:4, > from /usr/include/libmms/mms.h:42, > from mimms.cpp:28: > /usr/include/libmms/mms_config.h:4:1: warning: "/*" within comment > In file included from mimms.cpp:28: > /usr/include/libmms/mms.h:79: error: expected ',' or '...' before 'this' > /usr/include/libmms/mms.h:81: error: expected ',' or '...' before 'this' > /usr/include/libmms/mms.h:83: error: expected ',' or '...' before 'this' > In file included from mimms.cpp:29: > /usr/include/libmms/mmsh.h:44: error: expected ',' or '...' before 'this' > /usr/include/libmms/mmsh.h:46: error: expected ',' or '...' before 'this' > /usr/include/libmms/mmsh.h:47: error: expected ',' or '...' before 'this' > /usr/include/libmms/mmsh.h:53: error: expected ',' or '...' before 'this' > /usr/include/libmms/mmsh.h:55: error: expected ',' or '...' before 'this' > /usr/include/libmms/mmsh.h:57: error: expected ',' or '...' before 'this' HTH. Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
diff -Nru --exclude changelog libmms-0.4/src/mms.h libmms-0.4/src/mms.h --- libmms-0.4/src/mms.h 2007-12-12 01:54:48.000000000 +0530 +++ libmms-0.4/src/mms.h 2008-01-13 16:04:10.000000000 +0530 @@ -76,11 +76,11 @@ mms_off_t mms_get_current_pos (mms_t *instance); -uint32_t mms_get_asf_header_len (mms_t *this); +uint32_t mms_get_asf_header_len (mms_t *); -uint64_t mms_get_asf_packet_len (mms_t *this); +uint64_t mms_get_asf_packet_len (mms_t *); -int mms_get_seekable (mms_t *this); +int mms_get_seekable (mms_t *); #ifdef __cplusplus } diff -Nru --exclude changelog /tmp/EsZPjAQ9S8/libmms-0.4/src/mmsh.h /tmp/7Q6Md37EWA/libmms-0.4/src/mmsh.h --- libmms-0.4/src/mmsh.h 2007-12-12 01:54:48.000000000 +0530 +++ libmms-0.4/src/mmsh.h 2008-01-13 16:04:10.000000000 +0530 @@ -41,20 +41,20 @@ int mmsh_read (mms_io_t *io, mmsh_t *instance, char *data, int len); int mmsh_time_seek (mms_io_t *io, mmsh_t *instance, double time_sec); -mms_off_t mmsh_seek (mms_io_t *io, mmsh_t *this, mms_off_t offset, int origin); +mms_off_t mmsh_seek (mms_io_t *io, mmsh_t *, mms_off_t offset, int origin); uint32_t mmsh_get_length (mmsh_t *instance); -double mmsh_get_time_length (mmsh_t *this); -uint64_t mmsh_get_raw_time_length (mmsh_t *this); +double mmsh_get_time_length (mmsh_t *); +uint64_t mmsh_get_raw_time_length (mmsh_t *); mms_off_t mmsh_get_current_pos (mmsh_t *instance); void mmsh_close (mmsh_t *instance); int mmsh_peek_header (mmsh_t *instance, char *data, int maxsize); -uint32_t mmsh_get_asf_header_len (mmsh_t *this); +uint32_t mmsh_get_asf_header_len (mmsh_t *); -uint32_t mmsh_get_asf_packet_len (mmsh_t *this); +uint32_t mmsh_get_asf_packet_len (mmsh_t *); -int mmsh_get_seekable (mmsh_t *this); +int mmsh_get_seekable (mmsh_t *); #ifdef __cplusplus }
signature.asc
Description: Digital signature

