octave-maintainers
[Top][All Lists]
Advanced

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

Help with gdb


From: amr mohamed
Subject: Help with gdb
Date: Sun, 13 Mar 2016 12:51:22 +0200

Dear all,
I am trying to debig the file ov.cc in the libeinterp directory 
when i run the command mkoctfile -g ov.cc i get:

In file included from /usr/local/include/octave-4.0.1-rc3/octave/dim-vector.h:35:0,
                 from /usr/local/include/octave-4.0.1-rc3/octave/Array.h:35,
                 from /usr/local/include/octave-4.0.1-rc3/octave/str-vec.h:31,
                 from ov.cc:30:
/usr/local/include/octave-4.0.1-rc3/octave/oct-refcount.h:27:3: error: #error "The file <octave/config.h> must be included before oct-refcount.h."
 # error "The file <octave/config.h> must be included before oct-refcount.h."
   ^
In file included from /usr/local/include/octave-4.0.1-rc3/octave/data-conv.h:28:0,
                 from ov.cc:28:
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:30:1: error: variable ‘OCTAVE_API oct_mach_info’ has initializer but incomplete type
 oct_mach_info
 ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:30:1: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:32:1: error: expected primary-_expression_ before ‘protected’
 protected:
 ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:32:1: error: expected ‘}’ before ‘protected’
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:32:1: error: expected ‘,’ or ‘;’ before ‘protected’
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:36:1: error: expected unqualified-id before ‘public’
 public:
 ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:47:10: error: ‘float_format’ does not name a type
   static float_format native_float_format (void);
          ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:53:10: error: ‘float_format’ does not name a type
   static float_format string_to_float_format (const std::string&);
          ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:55:46: error: ‘float_format’ was not declared in this scope
   static std::string float_format_as_string (float_format);
                                              ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:57:1: error: expected unqualified-id before ‘private’
 private:
 ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h: In function ‘void cleanup_instance()’:
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:61:48: error: ‘instance’ was not declared in this scope
   static void cleanup_instance (void) { delete instance; instance = 0; }
                                                ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h: At global scope:
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:64:11: error: ‘float_format’ does not name a type
   mutable float_format native_float_fmt;
           ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:67:16: error: non-member ‘big_chief’ cannot be declared ‘mutable’
   mutable bool big_chief;
                ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:71:24: error: ‘oct_mach_info’ does not name a type
   oct_mach_info (const oct_mach_info&);
                        ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:71:37: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
   oct_mach_info (const oct_mach_info&);
                                     ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:71:39: error: expected constructor, destructor, or type conversion before ‘;’ token
   oct_mach_info (const oct_mach_info&);
                                       ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:73:3: error: ‘oct_mach_info’ does not name a type
   oct_mach_info& operator = (const oct_mach_info&);
   ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:74:1: error: expected declaration before ‘}’ token
 };
 ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:45:15: warning: ‘bool instance_ok()’ declared ‘static’ but never defined [-Wunused-function]
   static bool instance_ok (void);
               ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:49:15: warning: ‘bool words_big_endian()’ declared ‘static’ but never defined [-Wunused-function]
   static bool words_big_endian (void);
               ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:51:15: warning: ‘bool words_little_endian()’ declared ‘static’ but never defined [-Wunused-function]
   static bool words_little_endian (void);
               ^
/usr/local/include/octave-4.0.1-rc3/octave/mach-info.h:61:15: warning: ‘void cleanup_instance()’ defined but not used [-Wunused-function]
   static void cleanup_instance (void) { delete instance; instance = 0; }
               ^

I don't know how can i fix these errors.
Regards, 
Amr


reply via email to

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