-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Noel Yap Sent: Tuesday, November 08, 2005 9:14 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost::python and Python 2.4
I see the problem. Since the location of pyconfig.h depends upon which compiler was used, it's not located in the same directory as the rest of the Python header files.
[Nat] ? Sorry, I don't understand you at all. On my Windows system I installed Python 2.3 into the default directory, c:\Python23. Likewise Python 2.4 is installed in c:\Python24. The only pyconfig.h files on my system are in 'include' subdirectories of those two directories. They don't seem to be in compiler-dependent locations, and those 'include' subdirs ARE where 300+ other Python header files live. It's worth noting that we build the Boost libraries we use as MSVC 7.1 projects. Those projects (and others) look for a PYTHONDIR environment variable whose value used to be c:\Python23 and is now c:\Python24.
I've tried passing a ':'-separated path as PYTHON_INCLUDES, but that doesn't work. Anyone have any thoughts on this? I suppose I /could/ hack around this by using symlinks, but I'd rather find a less hacky solution.
[Nat] So, maybe the reason I don't understand the problem you're having is because you're on a different system with a different compiler.