From: Warren Young Date: May 13 2008 8:19pm Subject: Re: Build issue, v3.0.3, gcc 4.3, x86_64 (with patch proposal) List-Archive: http://lists.mysql.com/plusplus/7642 Message-Id: <4829F7BA.2030503@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Remi Collet wrote: > > Here is a little/trivial patch, > but this is probably not the better solution : > > --- lib/mystring.h.orig 2008-05-13 20:47:56.000000000 +0200 > +++ lib/mystring.h 2008-05-13 20:47:08.000000000 +0200 > @@ -144,7 +144,7 @@ > typedef const char value_type; > > /// \brief Type of "size" integers > - typedef unsigned int size_type; > + typedef size_t size_type; Works for me. It doesn't cause any build warnings or dtest changes on i386, so I don't see a downside. The only other option would be to add several static casts in lib/mystring.cpp, which would be uglier and wouldn't buy anything. It's in svn now, but since 3.0.3 was just released, it's not enough to cause another release. Average time between releases is a month, so I think you need to just patch your copy.