Python.h: No such file or directory

后端 未结 6 1964
误落风尘
误落风尘 2020-12-23 13:12

I recently installed KDevelop 4 for C++ development on my Macbook Pro running Ubuntu 12.04 LTS.

I want to embed Python application in my C++ code. To do that, one ne

6条回答
  •  没有蜡笔的小新
    2020-12-23 13:28

    You want to include the following on the compile line:

    `python-config --cflags`
    

    and this on the link line:

    `python-config --ldflags`
    

提交回复
热议问题