You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm receiving this error while tying to put together a simple pybind cmake example app.
Process finished with exit code -1073741515 (0xC0000135)
I've been google for hours now trying to figure out the source of this error. When i comment out the lines utilizing pybind (First 3 lines in main). It compiles and runs correctly and reaches the print statement. I'm pretty new to CMake so it's possible i set it up wrong. I added the lines pointing to python because I was receiving errors about missing python dll's. I'm using CLion and MSVS 2017 if that makes any difference.
example.cpp
#include <iostream>
#include <../pybind11/include/pybind11/pybind11.h>
#include <../pybind11/include/pybind11/embed.h>
#include <CImg.h>
namespace py = pybind11;
using namespace py::literals;
int main(int argc, char *argv[])
{
py::scoped_interpreter guard{};
auto example = py::module::import("example");
auto resultobj = example.attr("add")(2,2);
int result = resultobj.cast<int>();
std::cout << result;
}
I'm receiving this error while tying to put together a simple pybind cmake example app.
I've been google for hours now trying to figure out the source of this error. When i comment out the lines utilizing pybind (First 3 lines in main). It compiles and runs correctly and reaches the print statement. I'm pretty new to CMake so it's possible i set it up wrong. I added the lines pointing to python because I was receiving errors about missing python dll's. I'm using CLion and MSVS 2017 if that makes any difference.
example.cpp
example.py
Cmakelists.txt:
File Structure
The text was updated successfully, but these errors were encountered: