help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compile trouble octave2.09 on Mklinux


From: John W. Eaton
Subject: Compile trouble octave2.09 on Mklinux
Date: Thu, 18 Sep 1997 13:55:48 -0500

On 18-Sep-1997, Toru Mori <address@hidden> wrote:

| Hello all,
| I am trying to compile octave 2.09 on Mklinux system, but I can't solve
| following error.
| 
| --------------  
| make[2]: Entering directory `/home/mori/octave/octave-2.0.9/liboctave'
| c++ -c  -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc  
-DHAVE_CONFIG_H  -fno-implicit-templates  -g -O2 -Wall CollocWt.cc
| In file included from /usr/lib/g++-include/std/bastring.h:35,
|                  from /usr/lib/g++-include/std/string.h:6,
|                  from /usr/lib/g++-include/string:5,
|                  from mach-info.h:26,
|                  from data-conv.h:28,
|                  from dMatrix.h:35,
|                  from CollocWt.h:32,
|                  from CollocWt.cc:33:
| /usr/lib/g++-include/std/stddef.h:15: parse error before `::'
| make[2]: *** [CollocWt.o] Error 1
| make[2]: Leaving directory `/home/mori/octave/octave-2.0.9/liboctave'
| make[1]: *** [liboctave] Error 2
| make[1]: Leaving directory `/home/mori/octave/octave-2.0.9'
| make: *** [all] Error 2
| -------------
| 
|  "/usr/lib/g++-include/std/stddef.h"  is following.
| 
| -------------
|     // The -*- C++ -*- standard definitions header.
|     // This file is part of the GNU ANSI C++ Library.
| 
|     #ifndef __STDDEF__
|     #define __STDDEF__
| 
|     #ifdef __GNUG__
|     #pragma interface "std/stddef.h"
|     #endif
| 
|     #include <_G_config.h>
|     #include <std/cstddef.h>
| 
|     extern "C++" {
|     const size_t NPOS = (size_t)(-1);
|     typedef void fvoid_t();
| 
|     #ifndef _WINT_T
|     #define _WINT_T
|     typedef _G_wint_t wint_t;
|     #endif
| 
|     } // extern "C++"
|     #endif
| -------------
| 
| line 15 is    "const size_t NPOS = (size_t)(-1);"
| I don't understand the meaning of "parse error before `::'".
| 
| I use following system
| 
|   Mklinux DR2.1 on PowerPC601 
|   C++ versin : GNU C++ version 2.7.2.f.1
| 
| If system or other information is too few, please inform.

When you ran configure, was g++ correctly configured to find the
include files in /usr/lib/g++-include?  If so, Octave's configure
script should have found the definition for NPOS in <string>, or it
should have found that the C++ string class has npos as a data
member.  I'm not sure whether the above declaration is correct, but
you can probably work around it by removing the definition of NPOS
from Octave's config.h file and running make again.

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]