Skip to content

Program crashes when I try to run it.  #7

Open

Description

@HammadRehman

I am running the program in Release mode when I try to run the program it crashes saying "matplotlib.exe" has stopped working. I have just made new project VS2015 imported ur files and set the "Include directories" and "Library directories" path in properties. In Image attached line number is shown where program crashes in matplotlibcpp.h.
untitled

Regards

Activity

  1. lava commented on Jun 6, 2016

    @lava
    Owner

    Can you write a minimal, compilable example that reproduces the bug?

  2. HammadRehman commented on Jun 7, 2016

    @HammadRehman
    Author

    Steps I had done are:
    Make general (Empty project) in VS 2015.
    Imported matplotlibcpp.h .
    used minimal.cpp as main file.
    set the "Include directories" and "Library directories" path in properties. I have attached my project here. Please check it
    matplotlib.zip

  3. lava commented on Jun 7, 2016

    @lava
    Owner

    I don't have a Windows machine, so I'm not going to be able to follow your instructions. But if you just use the minimal example without modification, my best guess would be that you're not linking libpython correctly.

  4. HammadRehman commented on Jun 8, 2016

    @HammadRehman
    Author

    I have followed this article to install python on windows machine http://www.howtogeek.com/197947/how-to-install-python-on-windows/

    And I am succesfully able to print the last line which he mentioned. Do I need to install matplotlib in python seperately?? I am using python 2.7

  5. lava commented on Jun 8, 2016

    @lava
    Owner

    Yes, as mentioned in the "Installation"-section of the README, you need to have libpython development headers and matplotlib for python installed, so you need to run the windows-equivalent of sudo aptitude install python-matplotlib python2.7-dev.

  6. HammadRehman commented on Jun 9, 2016

    @HammadRehman
    Author

    I have installed python correctly following the above tutorial. but I haven't installed matplotlib seperatelly. I'll install matplotlib and then i'll let you know in a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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