tech-pkg archive

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

Re: cmake-3.12.2 fails on arm



On Mon, Sep 10, 2018 at 04:27:34PM +0200, Manuel Bouyer wrote:
> CMake Error at CMakeLists.txt:92 (message):
>   The C++ compiler does not support C++11 (e.g.  std::unique_ptr).

What flags is it using?

This works for me:

--8<--
[/tmp] martin@space-truckin > c++ -Wall -O2 test.cc
[/tmp] martin@space-truckin > cat test.cc 
#include <memory>

struct Foo {
        Foo() {}
        ~Foo() {}
};

int main(void)
{
        std::unique_ptr<Foo> pl(new Foo);
        return 0;
}
-->8--

Martin


Home | Main Index | Thread Index | Old Index