Le Sun, 08 May 2011 11:59:20 -0500,
"David C. Rankin" <drankinatty(a)suddenlinkmail.com> a écrit :
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:
The location of the include is OK, at least for me :)
Anyway, in C/C++, the only requirement with an include is that the
include must be put before where it is used. But putting it after the
include guard, like you did it, is even better :) (the include guard is
the 2 first lines and the last line, which prevent the header from being
included more than one time — after the first include, including it
again does nothing).
==> Finished making: trinity-kdegraphics 1230898-1 (Sun May 8
11:57:07 CDT 2011)