Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何包括-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++ - Fatal编程技术网

如何包括-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".";

如何包括-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 提前感谢我在下面的链接中找到了答案谢谢

如何在Python编译中添加-std=c++0x


提前感谢

我在下面的链接中找到了答案谢谢