Bugs item #2836834, was opened at 2009-08-13 12:34 Message generated for change (Comment added) made by zmoelnig You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=507079&aid=2836834...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Pixes (pix_ objects) Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: ClaudiusMaximus (claudiusmaximus) Assigned to: Nobody/Anonymous (nobody) Summary: 0.91.3 fails to build with g++-4.4
Initial Comment: with:
karmic/main g++-4.4 4.4.1-1ubuntu3
error:
recordQT4L.cpp: In function 'lqt_file_type_t guess_qtformat(const char*)': recordQT4L.cpp:96: error: invalid conversion from 'const char*' to 'char*'
suggested fix:
fix code to compile with g++-4.4, and then make a new release
----------------------------------------------------------------------
Comment By: IOhannes m zmlnig (zmoelnig)
Date: 2009-08-20 15:37
Message: weird.
according to "man 3 strrchr ", this function takes a "const char *s", which is exactly what it is given...
does it happen to work with 0.92svn ?
----------------------------------------------------------------------
Comment By: ClaudiusMaximus (claudiusmaximus) Date: 2009-08-15 20:11
Message: this fixes it:
diff -Nur -x '*.orig' -x '*~' pd-gem-0.91.3/src/Pixes/recordQT4L.cpp pd-gem-0.91.3.new/src/Pixes/recordQT4L.cpp --- pd-gem-0.91.3/src/Pixes/recordQT4L.cpp 2008-04-11 08:41:44.000000000 +0100 +++ pd-gem-0.91.3.new/src/Pixes/recordQT4L.cpp 2009-08-15 15:46:32.000000000 +0100 @@ -93,7 +93,7 @@ /* guess the file-format by inspecting the extension */ static lqt_file_type_t guess_qtformat(const char* filename) { - char * extension = strrchr(filename, '.'); + char * extension = strrchr(const_cast<char*>(filename), '.'); int i=0;
if(!extension) {
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=507079&aid=2836834...