For the code below-
in(0) = octave_value ("x");
octave_value_list out =feval ("sym", in, 1);
std::cout << out(0).string_value()<< std::endl;
I get the following output-
OctSymPy v2.2.2: this is free software without warranty, see source. Initializing communication with SymPy using a popen2() pipe. Some output from the Python subprocess (pid 7459) might appear next. Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> >>> Waiting....
OctSymPy: Communication established. SymPy v0.7.6. error: octave_base_value::double_value (): wrong type argument 'class' error: octave_base_value::int_value (): wrong type argument 'class' error: octave_base_value::convert_to_str_internal (): wrong type argument 'class'