I want to add some functions written in Python to my C++ program:
#include <iostream>
#include <Python.h>
using namespace std;
int main(){
int a = 0;
cout << a;
return 0;
}
But when I compile this program using commend g++ main.cpp -Wall -o main
I have an error: fatal error: Python.h: No such file or directory
I was trying to solve the problem by installing python2.7 -dev by sudo apt-get install python2.7-dev, but it didn't help. Can someone suggest what more I can do to fix this problem?