尝试在Linux上构建CMake时收到错误。我无法到达import {RouterModule} from '@angular/router';
@NgModule(
{
...
import:[
...
RouterModule
...
]
...
}
)
步骤。我在网上阅读,但仍然无法真正解决这个问题。
我尝试了这两种方法,但都没有效果:
make
他们导致:
$ ./configure --prefix=/opt/cmake
$ ./bootstrap
并且:
CMake Error at CmakeLists.txt:107 (message):
The C++ compiler does not support C++11 (e.g. std::unique_ptr).
-- Configuring incomplete, errors occurred
--------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
--------------------------------------------
我要编译的代码是用C语言编写的,所以我想知道为什么我收到有关C ++编译器的错误信息?也许对此也有任何想法吗?
答案 0 :(得分:1)
您可以使用以下命令设置特定的gcc和g ++版本。
export CC=path_of_gcc/gcc-version
export CXX=path_of_g++/g++-version
现在运行任何命令:
./configure #OR
./bootstrap