trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2011

Re: [trinity-devel] kdegraphics - Broke? error: taking address of temporary [-fpermissive]

From: /dev/ammo42 <mickeytintincolle@...>
Date: Sun, 8 May 2011 19:55:30 +0200
Le Sun, 08 May 2011 12:45:30 -0500,
"David C. Rankin" <drankinatty@...> a �crit :

> On 05/08/2011 11:53 AM, Baho Utot wrote:
> >
> >
> > On Sunday 08 May 2011 12:44:47 pm /dev/ammo42 wrote:
> >> Le Sun, 08 May 2011 11:35:22 -0500,
> >>
> >>>       Aborting...
> >>
> >> See my other message about #include<cstddef>. It is the same kind
> >> of gcc-4.6 related error as the one with Qt3.
> >> #include'ing<cstddef>  at the beginning of the file should solve
> >> every error (including the one with GPBufferBase::operator int()
> >> const).
> >>
> >
> > Bingo
> >
> > Compiles with GSmartPointer patched
> >
> > David see my svn
> > http://svn.trinitydesktop.org/websvn/listing.php?repname=Trinity+Packaging&path=%2Farch%2Fbaho%2Fdesktop%2Fkdegraphics%2F&#acfffde04af01883d11a725913521a2db
> > for a patch
> >
> > On svn.trinity.org
> > /arch/baho/desktop/kdegraphics/
> >
> 
> Awesome - things are looking up for gcc 4.6. May not be that bad
> after all after we find all the headers that need #include
> <cstddef>.  The problem I have is I can't tell which header needs the
> new include.... :p
Every header that produces an error of the type
error: 'A' does not name a type
where A is a C standard type like size_t or ptrdiff_t is a header that
needs to #include <cstddef>.
Here are the types defined by stddef.h and cstddef (which is the C++
equivalent of stddef.h) according to the C standard:
size_t
wchar_t
ptrdiff_t