octave-maintainers
[Top][All Lists]
Advanced

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

Re: Mac OS X sscanf bug/feature?


From: Ben Abbott
Subject: Re: Mac OS X sscanf bug/feature?
Date: Sun, 27 Mar 2016 16:12:29 -0400

> On Mar 27, 2016, at 3:01 PM, Mike Miller <address@hidden> wrote:
> 
> On Sun, Mar 27, 2016 at 14:48:17 -0400, Ben Abbott wrote:
>> Ok. Looks like Apple’s clang doesn’t like that.
>> 
>> In file included from libinterp/dldfcn/__delaunayn__.cc:50:
>> In file included from libinterp/corefcn/Cell.h:31:
>> In file included from ./liboctave/array/Array.h:38:
>> ./liboctave/array/idx-vector.h:68:55: error: friend declaration of 
>> 'unique_ptr' does not match any declaration in namespace 'std'
> […]
> 
> Hmm, it looks like it's finding the right headers but something is
> missing. Did you run configure with CXX="clang++ -stdlib=libstdc++"?
> 
> Does configure report that "-std=gnu++11" is added to CXX?
> 
> With that option present, you shouldn't see the errors you're seeing,
> maybe Apple is giving you a really ancient version of libstdc++.
> 
> -- 
> mike

To be sure, I forced -sdt=gnu++11 to be added but still encountered the same  
...

End of search list.
In file included from libinterp/dldfcn/__delaunayn__.cc:50:
In file included from libinterp/corefcn/Cell.h:31:
In file included from ./liboctave/array/Array.h:38:
./liboctave/array/idx-vector.h:68:55: error: friend declaration of 'unique_ptr' 
does not match any declaration in namespace 'std'
  template <typename T, typename D> friend class std::unique_ptr;
                                                 ~~~~~^
In file included from libinterp/dldfcn/__delaunayn__.cc:55:
./liboctave/util/unwind-prot.h:71:14: error: no member named 'unique_ptr' in 
namespace 'std'
        std::unique_ptr<elem> ptr (lifo.top ());
        ~~~~~^
./liboctave/util/unwind-prot.h:71:25: error: 'elem' does not refer to a value
        std::unique_ptr<elem> ptr (lifo.top ());
                        ^
./liboctave/util/action-container.h:42:9: note: declared here
  class elem
        ^
In file included from libinterp/dldfcn/__delaunayn__.cc:55:
./liboctave/util/unwind-prot.h:71:31: error: use of undeclared identifier 'ptr'
        std::unique_ptr<elem> ptr (lifo.top ());
                              ^
./liboctave/util/unwind-prot.h:73:9: error: use of undeclared identifier 'ptr'
        ptr->run ();
        ^
libinterp/dldfcn/__delaunayn__.cc:194:19: warning: use of old-style cast 
[-Wold-style-cast]
                  FOREACHvertex_ (facet->vertices)
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/sw/include/libqhull/libqhull.h:912:34: note: expanded from macro 
'FOREACHvertex_'
#define FOREACHvertex_(vertices) FOREACHsetelement_(vertexT, vertices,vertex)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/sw/include/libqhull/qset.h:137:24: note: expanded from macro 
'FOREACHsetelement_'
          variable##p= (type **)&((set)->e[0].p); \
                       ^        ~~~~~~~~~~~~~~~~
1 warning and 5 errors generated.
Makefile:17592: recipe for target 
'libinterp/dldfcn/libinterp_dldfcn___delaunayn___la-__delaunayn__.lo' failed
make[2]: *** 
[libinterp/dldfcn/libinterp_dldfcn___delaunayn___la-__delaunayn__.lo] Error 1
make[2]: Leaving directory 
'/Users/bpabbott/Development/mercurial/default/sources'
Makefile:25371: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1

Ben




reply via email to

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