Robert Osfield wrote:
> HI Sid,
> 
> I've merged all the changes except the additions of #include <gmpxx.h>
> as this break the build even on my Kubuntu 7.10 install, so chances
> are that it'll break practically everywhere else as well.
> 
> Could you post what errors the above addition fixed?  We should be
> able to come up with a more portable replacement.
> 
> Cheers,
> Robert.
> 
> On Dec 22, 2007 5:24 PM, Sid Boyce <[EMAIL PROTECTED]> wrote:
>> Robert Osfield wrote:
>>> Hi Sid,
>>>
>>> Could you post me those changes so I can review them and get fixes into SVN.
>>>
>>> Cheers,
>>> Robert.
>>>
>> See attached file.
>> Regards
>> Sid.
>>
>>> On Dec 22, 2007 7:49 AM, Sid Boyce <[EMAIL PROTECTED]> wrote:
>>>> With openSUSE 11.0 (X86-64) Alpha0 gcc version 4.3.0 20071129
>>>> (experimental) [trunk revision 130511] (SUSE Linux)
>>>> I have had to insert header files in various places in order to get it
>>>> to build. Most missing ones were string.h and stdlib.h, also gmpxx.h,
>>>> values.h, memory.
>>>> Regards
>>>> Sid.
>>>>
>>>> --

AOK. I have been looking at gmpxx.h which led me to 
/usr/include/c++/4.3/cstring which is interesting.

// ISO C++ 14882: 20.4.6  C library
//

#pragma GCC system_header

#include <bits/c++config.h>
#include <cstddef>
#include_next <string.h>

#ifndef _GLIBCXX_CSTRING
#define _GLIBCXX_CSTRING 1

// Get rid of those macros defined in <string.h> in lieu of real functions.
#undef memchr
#undef memcmp
#undef memcpy
#undef memmove
#undef memset
#undef strcat
#undef strchr
#undef strcmp
#undef strcoll
#undef strcpy
#undef strcspn
#undef strerror
#undef strlen
#undef strncat
#undef strncmp
#undef strncpy
#undef strpbrk
#undef strrchr
#undef strspn
#undef strstr
#undef strtok
#undef strxfrm

_GLIBCXX_BEGIN_NAMESPACE(std)

   using ::memchr;
   using ::memcmp;
   using ::memcpy;
   using ::memmove;
   using ::memset;
   using ::strcat;
   using ::strcmp;
   using ::strcoll;
   using ::strcpy;
   using ::strcspn;
   using ::strerror;
   using ::strlen;
   using ::strncat;
   using ::strncmp;
   using ::strncpy;
   using ::strspn;
   using ::strtok;
   using ::strxfrm;

   inline void*
   memchr(void* __p, int __c, size_t __n)
   { return memchr(const_cast<const void*>(__p), __c, __n); }

   using ::strchr;

   inline char*
   strchr(char* __s1, int __n)
   { return __builtin_strchr(const_cast<const char*>(__s1), __n); }

   using ::strpbrk;

   inline char*
   strpbrk(char* __s1, const char* __s2)
   { return __builtin_strpbrk(const_cast<const char*>(__s1), __s2); }

   using ::strrchr;

   inline char*
   strrchr(char* __s1, int __n)
   { return __builtin_strrchr(const_cast<const char*>(__s1), __n); }

   using ::strstr;

   inline char*
   strstr(char* __s1, const char* __s2)
   { return __builtin_strstr(const_cast<const char*>(__s1), __s2); }

_GLIBCXX_END_NAMESPACE

#endif

Regards
Sid.
-- 
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support 
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to