octave-maintainers
[Top][All Lists]
Advanced

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

Re: Help in Building octave on ubuntu 12.04


From: Rik
Subject: Re: Help in Building octave on ubuntu 12.04
Date: Wed, 25 May 2016 10:12:47 -0700

On 05/25/2016 01:06 AM, address@hidden wrote:
Subject:
Help in Building octave on ubuntu 12.04
From:
Abhinav Tripathi <address@hidden>
Date:
05/25/2016 01:06 AM
To:
address@hidden
List-Post:
<mailto:address@hidden>
Precedence:
list
MIME-Version:
1.0
Message-ID:
<address@hidden>
Content-Type:
multipart/alternative; boundary=047d7bdc8fa246482d0533a62795
Message:
8

Hi,
I have successfully built octave from source on ubuntu 16.04 using the same steps. But when I issue the 'make' command on ubuntu 12.04 then I get the following error:
.
  CXX    libinterp/dldfcn/libinterp_dldfcn___delaunayn___la-__delaunayn__.lo
In file included from ../liboctave/array/Array.h:38:0,
                 from ../libinterp/corefcn/Cell.h:31,
                 from ../libinterp/dldfcn/__delaunayn__.cc:50:
../liboctave/array/idx-vector.h:68:55: error: 'unique_ptr' in namespace 'std' does not name a type
In file included from ../libinterp/corefcn/error.h:31:0,
                 from ../libinterp/octave-value/ov-base.h:40,
                 from ../libinterp/octave-value/ov.h:57,
                 from ../libinterp/corefcn/Cell.h:33,
                 from ../libinterp/dldfcn/__delaunayn__.cc:50:
../liboctave/util/unwind-prot.h: In member function 'virtual void octave::unwind_protect::run_first()':
../liboctave/util/unwind-prot.h:73:11: error: 'unique_ptr' is not a member of 'std'
.
.
I can't update the ubuntu 12.04 for some reasons. And it would help if I could work on this machine too..
The gcc version is 4.6.3
.
I have already tried using unique_ptr successfully on my programs on the same compiler set. I had to pass -std=c++0x flag.  [-std=c++11 is not supported]
I guess that octave is not using this flag? (Although as seen from some of the outputs, it checks automatically for the flag to support c++11)
.
Is there a way to tell make to use the -std=c++0x flag?

Abhinav,

Funnily enough, there was e-mail on this subject just within the last week on the mailing list.  The development branch of Octave is now using C++11 features and requires a compiler that supports that.  We used to have a check for that in configure.ac so you would be warned early about problems.  That was backed out in March.

changeset:   21481:eebbb80bf6d9
user:        Mike Miller <address@hidden>
date:        Fri Mar 18 11:03:58 2016 -0700
summary:     build: Use gnulib module std-gnu11 to enable C11 and C++11 features

changeset:   21480:eec0b7933e6a
user:        Mike Miller <address@hidden>
date:        Fri Mar 18 11:01:02 2016 -0700
summary:     Backed out changeset 0cf6c08cb252 for enabling C11 and C++11 features

Some sort of check should probably be re-established so you don't waste a lot of compile cycles before reaching a file that has std::unique_ptr in it.

--Rik

reply via email to

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