abstract å¿ è¦ãªããã <boost/python.hpp> åºæ¥ãã㨠C++ããPython / PythonããC++ã使ãããã®è£å©ãã¬ã¼ã ã¯ã¼ã¯ ãªãã¡ã¬ã³ã¹ en / jp sample 1 (C++ããPythonã¤ã³ã¿ããªã¿ã使ã) ãµã³ãã«ã®åä½ç¢ºèªãã¼ã¸ã§ã³ [GCC4.4/1.41.0] [VC9/1.41.0] #define BOOST_PYTHON_STATIC_LIB //â Boost.Pythonãéçãªã³ã¯ããå ´åã // ãããªãã ã¨Boost.Pythonã®DLLã«ä¾åããå®è¡ãã¡ã¤ã«ã«ãªãã¾ã #include <iostream> #include <boost/python.hpp> using namespace std; // ã¦ãã¨ã¼ãªé¢æ° int cppFun( int x ) { cout << "Inside C++" <<
{{#tags}}- {{label}}
{{/tags}}