3

I am embedding Python with c++. i am using to_wstring() in my c++ function and the c++ code gets compiled when i add -std=c++0x. But while compiling python code using python setup.py build i get the following warning and error

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++     [enabled by default]
test.cpp: In function ‘std::wstring convert_to_wstring(unsigned char*, int)’:
test.cpp:180:57: error: ‘to_wstring’ was not declared in this scope
                     w_string += to_wstring(stream[i]) + L".";

how to add -std=c++0x in Python compilation?

Thanks in advance

Query
  • 31
  • 2
  • I found the answer in the following link http://stackoverflow.com/questions/16993927/using-cython-to-link-python-to-a-shared-library Thanks – Query Dec 20 '14 at 05:24

0 Answers0