如何包括-std=c++;0x,同时使用c+扩展python+; 我用C++嵌入Python。 我在我的C++函数中使用toWoStrug(),而当我添加-STD= C++ +0x时,C++代码就被编译了。 但是在使用python setup.py build编译python代码时 我得到以下警告和错误 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".";
如何在Python编译中添加-std=c++0x如何包括-std=c++;0x,同时使用c+扩展python+; 我用C++嵌入Python。 我在我的C++函数中使用toWoStrug(),而当我添加-STD= C++ +0x时,C++代码就被编译了。 但是在使用python setup.py build编译python代码时 我得到以下警告和错误 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".";,python,c++,Python,C++,如何在Python编译中添加-std=c++0x 提前感谢我在下面的链接中找到了答案谢谢
提前感谢我在下面的链接中找到了答案谢谢