Issue 18119 - IRIX: sw, math namespace issues
Summary: IRIX: sw, math namespace issues
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: SGI IRIX
: P3 Trivial (vote)
Target Milestone: OOo 1.1.1
Assignee: sander_traveling
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks: 809
  Show dependency tree
 
Reported: 2003-08-11 02:06 UTC by nickb
Modified: 2004-02-27 13:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description nickb 2003-08-11 02:06:04 UTC
cc-1132 CC: ERROR File = /usr/include/internal/math_core.h, Line = 1396
  The namespace "std" has no member "size_t".

  extern char * initstate(unsigned int, char *, __SGI_LIBC_NAMESPACE_QUALIFIER
size_t);
                                                                               ^

cc-1132 CC: ERROR File = /usr/include/internal/stdlib_core.h, Line = 319
  The namespace "std" has no member "size_t".

  extern char *initstate(unsigned int, char *, __SGI_LIBC_NAMESPACE_QUALIFIER
size_t);
                                                                              ^

cc-1132 CC: ERROR File = /usr/include/internal/stdlib_core.h, Line = 330
  The namespace "std" has no member "size_t".

  extern void *valloc(__SGI_LIBC_NAMESPACE_QUALIFIER size_t);
                                                     ^

cc-1132 CC: ERROR File = /usr/include/internal/stdlib_core.h, Line = 350
  The namespace "std" has no member "size_t".

  extern char *getcwd(char *, __SGI_LIBC_NAMESPACE_QUALIFIER size_t);
                                                             ^

cc-1132 CC: ERROR File = /usr/include/internal/stdlib_core.h, Line = 356
  The namespace "std" has no member "size_t".

  extern void *memalign(__SGI_LIBC_NAMESPACE_QUALIFIER size_t,
__SGI_LIBC_NAMESPACE_QUALIFIER size_t);
                                                       ^

cc-1018 CC: ERROR File = /usr/include/internal/stdlib_core.h, Line = 356
  An unmatched left parentheses "(" appears in an expression.

  extern void *memalign(__SGI_LIBC_NAMESPACE_QUALIFIER size_t,
__SGI_LIBC_NAMESPACE_QUALIFIER size_t);
                                                             ^

cc-1132 CC: ERROR File = /usr/include/stdlib.h, Line = 6
  The namespace "std" has no member "size_t".

  __SGI_LIBC_USING_FROM_STD(size_t)
  ^

cc-1132 CC: ERROR File = /usr/include/internal/string_core.h, Line = 113
  The namespace "std" has no member "size_t".

                __SGI_LIBC_NAMESPACE_QUALIFIER size_t);
                                               ^

cc-1132 CC: ERROR File = /usr/include/internal/string_core.h, Line = 116
  The namespace "std" has no member "size_t".

  extern __SGI_LIBC_NAMESPACE_QUALIFIER size_t strlcat(char *, const char *,
                                        ^

cc-1132 CC: ERROR File = /usr/include/internal/string_core.h, Line = 117
  The namespace "std" has no member "size_t".

                __SGI_LIBC_NAMESPACE_QUALIFIER size_t);
                                               ^

cc-1132 CC: ERROR File = /usr/include/internal/string_core.h, Line = 118
  The namespace "std" has no member "size_t".

  extern __SGI_LIBC_NAMESPACE_QUALIFIER size_t strlcpy(char *, const char *,
                                        ^

cc-1132 CC: ERROR File = /usr/include/internal/string_core.h, Line = 119
  The namespace "std" has no member "size_t".

                __SGI_LIBC_NAMESPACE_QUALIFIER size_t);
                                               ^

cc-1132 CC: ERROR File = /usr/include/string.h, Line = 6
  The namespace "std" has no member "size_t".

  __SGI_LIBC_USING_FROM_STD(size_t)
  ^

13 errors detected in the compilation of
"/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/sw/source/core/bastyp/calc.cxx".
Comment 1 nickb 2003-08-11 02:18:22 UTC
Changed all standard includes to STL based ones, and used
cstdlib rather than search.h

Index: calc.cxx
===================================================================
RCS file: /cvs/sw/sw/source/core/bastyp/calc.cxx,v
retrieving revision 1.25
diff -u -r1.25 calc.cxx
--- calc.cxx    17 Apr 2003 13:41:41 -0000      1.25
+++ calc.cxx    11 Aug 2003 01:18:42 -0000
@@ -62,15 +62,17 @@
 #pragma hdrstop


-#include <ctype.h>
+#include <cctype>
 #if defined(MAC) || defined(MACOSX)
 #include <stdlib.h>
 #else
-#include <search.h>
+//#include <search.h>
 #endif
-#include <limits.h>
-#include <math.h>
-#include <float.h>
+#include <cstdlib>
+#include <climits>
+#include <cmath>
+//#include <math.h>
+#include <cfloat>
Comment 2 Martin Hollmichel 2003-08-15 10:37:38 UTC
set target.
Comment 3 Martin Hollmichel 2003-10-17 08:21:40 UTC
reassigned.
Comment 4 sander_traveling 2003-11-03 13:21:23 UTC
fix commited in ooo111fix1
Comment 5 Martin Hollmichel 2004-02-27 13:07:19 UTC
close issue