octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #32444] Range.cc build error: ‘floor’ is not a


From: Alexander Barth
Subject: [Octave-bug-tracker] [bug #32444] Range.cc build error: ‘floor’ is not a member of ‘gnulib’
Date: Wed, 23 Feb 2011 21:09:17 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13

Follow-up Comment #5, bug #32444 (project octave):

Yes, I have a file libgnu/math.h:

$ ls -l libgnu/math.h 
-rw-r--r-- 1 mc gher 36615 Feb 22 22:13 libgnu/math.h

The file
'/usr/include/c++/cvos/shared/apps/gcc/4.3.2/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/cmath
' does not exist, but I have the file
'/cvos/shared/apps/gcc/4.3.2/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/cmath'

In this file, math.h is included right at the beginning:
#pragma GCC system_header

#include <bits/c++config.h>
#include <bits/cpp_type_traits.h>
#include <ext/type_traits.h>
#include_next <math.h>

#ifndef _GLIBCXX_CMATH
#define _GLIBCXX_CMATH 1

I have also gcc 4.1.2 on my system which compiles Range.cc without problem.
The corresponding Range.ii contains a line:

# 30 "../libgnu/math.h" 2 3
# 618 "../libgnu/math.h" 3
namespace gnulib { static double (*floor) (double x) = ::floor; } extern "C"
int _gl_cxxalias_dummy;


This declaration is missing in Range.ii when I use gcc 4.3.2.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32444>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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