> The correct thing, I believe, is not to just add casts (although that > might be correct in many cases) but to change the the 'long' to > 'uint32_t' (or int32_t). On 64bit platforms 'long' is 8 bytes (64bits). > If a 32bit quantity is what is needed it is probably not a good thing > to simply add a cast. > > Have fun! When you get it building and running then a set of "diff -u" > patches can be posted to the list ('-devel' but no one would object > too strenuously if they appeared here ;)) for review and integration. > > Cheers, > Steven Schultz
Thank again Steven I must admit I am curious to know while cygwin g++ reports errors where the linux compile presumably is only reporting warnings. I cannot see any swith in the make files which would do this. After just a couple of type fixes it compiles down to y4mdenoise. Then g++ complains about templates. This would also appear to come from type conversion as Log2Bits is defined in Limits.hh for the various int_t types. I am not very familiar with templates. So I guess I have some reading to do. g++ -DNDEBUG -finline-functions -fno-PIC -march=pentium4 -mcpu=pentium4 -g -O2 -o y4mdenoise.exe main.o newdenoise.o ../utils/.libs/libmjpegutils.a newdenoise.o(.text$_ZNK14BitmapRegion2DIslE15IteratorForwardERNS0_13ConstIter atorE[BitmapRegion2D<short, long>::IteratorForward(BitmapRegion2D<short, long>::ConstIterator&) const]+0x2c): In function `_ZN16DoublyLinkedListIN12SearchWindowIhLi2ElslLs2ELs2Et5PixelIhLi2ElE14Refere ncePixelIthLi2ES2_E14ReferenceFrameIS4_slEE16SearchWindowCellEEC2Ev': /home/pjk/mjpegplay/y4mdenoise/DoublyLinkedList.hh: undefined reference to `Limits<unsigned>::Log2Bits'[EMAIL PROTECTED] Peter King ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users