c++ - CLion GNU STL Renderers -


i trying debug c++ program uses std::map.
in post http://blog.jetbrains.com/clion/2015/05/debug-clion/ says support gnu stl renderers if include -stdlib=libstdc++ in cmake file, error when building.

c++: error: unrecognized command line option '--stdlib=libstdc++' 

here cmake file

cmake_minimum_required(version 3.3) 

project(lint)

set(cmake_cxx_flags "${cmake_cxx_flags} -std=gnu++11 --stdlib=libstdc++")  set(source_files main.cpp) add_executable(lint ${source_files}) 

here main.cpp

using namespace std;  int main() {     list<map<string, int>*>* sint3 = new list<map<string,int>*>;     sint3->push_front(new map<string,int>);     return 0; } 

how gnu stl renderers work announcement said?

remove dash:

set(cmake_cxx_flags "${cmake_cxx_flags} -std=gnu++11 -stdlib=libstdc++") //                                                  ^^^ 

one dash goes long way in command line!

also, closely @ linked article:

this feature works in gcc, , in case of clang works libstdc++ only.

from conclude g++, there no need append option, renderers should work out of box.

edit: obligatory so question link.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -