Skip to content

exception "access violation" with minimal example #187

@TomFD

Description

@TomFD

I'm getting an exception with access violation with the minimal example, change slightly to that below, see screenshot for place of exception (plot->first detail::get_array(X) -> PyList_New(v.size());

Any idea what is wrong?

Thank you in advance,
Thomas

grafik

#include
// according to: boostorg/system#32
#define HAVE_SNPRINTF
#include <Python.h>

#define WITHOUT_NUMPY
#include "C:\Users\tsch\OneDrive\Dokumente\fiberdesk wo code\fiberdesk code dependencies\matplotlib-cpp-master\matplotlibcpp.h"

int main()
{
std::cout << "Hello world";
namespace plt = matplotlibcpp;

plt::plot({ 1,3,2,4 });

return 0;

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions