title: OSX What does "error: cannot convert 'const std::__cxx11::basic_string<char>" mean?
body: <p>I am compiling a friend's code on my machine, and I keep getting hit with this error:</p>
  
  <pre><code> $ mpic++ dummy_file_name.cpp
  
   dummy_file_name.cpp: In member function 'bool dummy_name1::dummy_name2::python_convert(const StringMultiArray&amp;, PyObject**)':
   dummy_file_name.cpp:430:55:error: cannot convert 'const std::__cxx11::basic_string&lt;char&gt;' to 'const char*' for argument '1' to 'PyObject* PyString_FromString(const char*)'
       PyList_SetItem(*dst, i, PyString_FromString(src[i]));
  </code></pre>
  
  <p>What does this mean? How can I diagnose or treat this issue? I am using the mpic++ compiler. I have tried googling this error but I have not found any fruitful information.</p>
  
  <p>Here is how I built my environment:</p>
  
  <pre><code>brew reinstall gcc --without-multilib
  export HOMEBREW_CC=gcc-5
  export HOMEBREW_CXX=g++-5
  brew install openmpi --build-form-source
  brew install llvm --with-clang
  </code></pre>