trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2011

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

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 08 May 2011 11:59:20 -0500
On 05/08/2011 11:42 AM, David C. Rankin wrote:
> On 05/08/2011 11:34 AM, /dev/ammo42 wrote:
>> The error
>> 'size_t' does not name a type
>> wont't be fixed by -fpermissive. To fix it, you need to add a
>> #include<cstddef>
>> to your GSmartPointer.h include. It is the same kind of error that the
>> one with Qt3.
>
> Ahh - a gcc-4.6 error. I'll go do that and report back! Thanks :)
>

SUCCESS!

--- kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h
+++ kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h 2011-05-08 
11:47:20.000000000 -0500
@@ -56,6 +56,7 @@

  #ifndef _GSMARTPOINTER_H_
  #define _GSMARTPOINTER_H_
+#include <cstddef>
  #ifdef HAVE_CONFIG_H
  #include "config.h"
  #endif

Let me know if putting the include in that location is OK. It works so I guess 
its good - but if it would be better somewhere else - let me know. Thanks:

==> Finished making: trinity-kdegraphics 1230898-1 (Sun May  8 11:57:07 CDT 2011)

-- 
David C. Rankin, J.D.,P.E.