1

I'm trying to develop a ns-3 code in C++ that imports some Python bindings, by using Python.h library. ("#include python2.7/Python.h")

However, when I start to use Python functions (such as Py_Initialize and others), I receive an error message:

undefined reference to 'Py_Initialize'

and the build fails.

How can I solve this?

I'm currently using: Ubuntu 16.10, ns-3.26, Python: 2.7.12+

Syden
  • 8,425
  • 5
  • 26
  • 45
  • Possible duplicate of [Python - Py\_Initialize unresolved during compilation](http://stackoverflow.com/questions/13782618/python-py-initialize-unresolved-during-compilation) –  Jan 24 '17 at 17:12
  • check if python-dev is installed in your system – You.baddi Jan 25 '17 at 00:07

0 Answers0