написал простую функцию C++ и попытался загрузить ее в Python:
test.hpp
Код: Выделить всё
class Test {
public:
void test();
};
Код: Выделить всё
#include
#include "test.hpp"
void Test::test() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/73100508/calling-c-function-from-python-with-cppyy[/url]