C++11 错误:没有名为'的成员;安置',使用make all编译Liquibook时 包含在./Market.h:6中的文件中: 在文件中包括从 /用户/shubhamsharma/projects/liquibook/src/book/depth\u order\u book.h:6: /用户/shubhamsharma/projects/liquibook/src/book/order_book.h:559:17: 错误:中没有名为“emplace”的成员 'std::_1::多重映射' 停止标放置(键,标准::移动(跟踪器));

C++11 错误:没有名为'的成员;安置',使用make all编译Liquibook时 包含在./Market.h:6中的文件中: 在文件中包括从 /用户/shubhamsharma/projects/liquibook/src/book/depth\u order\u book.h:6: /用户/shubhamsharma/projects/liquibook/src/book/order_book.h:559:17: 错误:中没有名为“emplace”的成员 'std::_1::多重映射' 停止标放置(键,标准::移动(跟踪器));,c++11,makefile,emplace,mpc,C++11,Makefile,Emplace,Mpc,我已经设置了所有的环境变量,Makefile是使用MPC生成的,错误发生在makeall之后。我已尝试将gcc升级到4.9,但仍然出现相同的错误。请帮忙 检查makefile并查看用于编译的命令。您必须显式启用C++11功能。在g++上,这是通过-std=c++11.main.o$(foreach lib,$(foreach libpath,$(通配符$(libpath)/lib$(lib.a))@test-d”/Users/shubhamsharma/projects/liquibook/bi

我已经设置了所有的环境变量,Makefile是使用MPC生成的,错误发生在makeall之后。我已尝试将gcc升级到4.9,但仍然出现相同的错误。请帮忙

检查makefile并查看用于编译的命令。您必须显式启用C++11功能。在g++上,这是通过
-std=c++11
.main.o$(foreach lib,$(foreach libpath,$(通配符$(libpath)/lib$(lib.a))@test-d”/Users/shubhamsharma/projects/liquibook/bin/“| mkdir-p”/Users/shubhamsharma/projects/liquilibook/bin/“g++-std=c++-fPIC-d-d\u可重入-L”。“.main.o-ldl$(substim-lib-basename,$(notdir$)”$(通配符/usr/lib/librt.so/lib/librt.so‘‘‘‘‘))-lpthread-o“$@”上面是使用“make all”生成的命令,但我仍然遇到以下两个错误:没有名为emplace的成员,没有用于调用“make_shared”的匹配函数。
In file included from ./Market.h:6:
In file included from 
/Users/shubhamsharma/projects/liquibook/src/book/depth_order_book.h:6:
/Users/shubhamsharma/projects/liquibook/src/book/order_book.h:559:17: 
error: no member named 'emplace' in
  'std::__1::multimap<liquibook::book::ComparablePrice,
  liquibook::book::OrderTracker<std::__1::shared_ptr<orderentry::Order> >,
  std::__1::less<liquibook::book::ComparablePrice>, std::__1::allocator<std::__1::pair<const
  liquibook::book::ComparablePrice, liquibook::book::OrderTracker<std::__1::shared_ptr<orderentry::Order> > > >
  >'
  stopBids_.emplace(key, std::move(tracker));