Boost logo

Boost Users :

Subject: Re: [Boost-users] [Python] gcc error compiling boost
From: Daniel Hofmann (daniel_at_[hidden])
Date: 2016-07-29 04:49:07


On 07/28/2016 07:27 PM, Àlex Jarauta wrote:
> Dear all,
>
> my name is Alex and I am a postdoc at the University of Alberta,
> Edmonton, Canada. I am working with an in-house opensource code that
> uses boost to wrap C++ code with Python. In the latest version of our
> code, one has to download boost manually and compile it. I have tried
> wot two different versions (1.59 and 1.60) and I can compile them with
> python 2.7. However, if I try to compile it using either Python 3.3 or
> 3.5, I always get the same error:
>
> "./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h:
> No such file or directory
> # include <pyconfig.h>"

Can you make sure Python's header directory is added to the compiler's
include paths? For example on my system the headers for the system-wide
Python 3.4 installation are at:

    /usr/include/python3.4/

Add this to your compiler's include paths.

Cheers,
Daniel J H

> I have been looking for this error for a while, but I have not been able
> to find a proper solution. I wonder if you could help me on this matter.
>
> Thank you very much for your attention.
>
> Best regards,
>
>
> Àlex
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net