From: "Steven M. Schultz" <[EMAIL PROTECTED]> To: mjpeg-users@lists.sourceforge.net Subject: Re: [Mjpeg-users] Re: Compiling Mjpegtools under Cygwin Date sent: Tue, 3 May 2005 09:59:49 -0700 (PDT)
> > On Tue, 3 May 2005 [EMAIL PROTECTED] wrote: > > > I can see a number of "sizeof (unsigned int)" which is clearly as you say > > to adapt to > > machine word size, but then the Limits.hh essentially defines a whole list > > of templated > > structures which contain only static member with details about fixed size > > integers. > > "unsigned int" is not included. I have search for Limits<unsigned int> to > > find an instance > > Right - and I think that is because one of those templates _matches_ > "unsigned int". Somewhere perhaps there is a typedef that's tying > things together. > > For example on a machine with a 64bit int the <uint64_t> entry will > match and be selected for use with "unsigned int". On a 32bit system > the <uint32_t> entry will be used and so on. > > > for unsigned int without succes. I presume it must exist if this code is to > > adapt as you > > suggest, or even to allow the code to compile under linux, but I cannot > > find. > > I think g++ is doing the adaptation somehow. > > > As far as I can see the cygwin compiler baulks at the compound type " > > unsigned int" as > > you will notice the error reported "undefined reference to > > `Limits<unsigned>::Bits" > > Well, I'm not a C++ expert but "unsigned int" was valid C++ (it's > definitely valid C ;)) I thought. I have tried a little test program and after including stdint.h GCC will let me assign and unsigned int to uint32_t without comment and assign *unsigned int to *uint32_t. After all they are defined as synonyms by typedef in stdint.h. Running gcc from the command line to compile mpeg2enc/motionest.cc produces the same error as it does from make. So I guess that means that something is happening in the include files to motionest.cc to redefine unint32_t. Since it does not happen under linux this must mean one of cygwin include files is at fault. I guess I'll poke around in the includes and look for an explanation there. [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