Firstly .. I apologise for posting my original mail here , I think I should have emailed to the Python list.
As for following the advice at http://www.boost.org/libs/python/doc/tutorial/doc/html/python/hello.html ..err no ... I did not I'm afraid, but on the other hand I am using scons as my underlying build system. However I did manage to solve my problem, be it not in the most elegant way.
Under Cygwin I built my Boost Python libraries with the line :
bjam --with--python
which gave me two boost_python libraries in /usr/local/lib (as well as others)
libboost_python-gcc-mt-d-1_33_1.a
libboost_python-gcc-mt-d-1_33_1.dll
When I was compiling with the g++ command below line I was getting my errors.
BUT when I renamed libboost_python-gcc-mt-d-1_33_1.a to libboost_python-gcc-mt-d-1_33_1.axx
( at this point I did not want to actualy delete the static library) the compilation was successful.
So I can only conclude that by default I was linking to the static library, and there was something wrong
with the doing that. Since I only ever wanted to link to the dll anyway ..... this solution suffices.
N
----- Original Message ----
From: David Abrahams
My compile command line is :
g++ -o /cygdrive/c/Build/cygwin/gcc/3.4.4/Debug/Intermediate/PythonPapa/PythonPapa.dll -shared /cygdrive/c/Build/cygwin/gcc/3.4.4/Debug/Intermediate/PythonPapa/main.os /cygdrive/c/Build/cygwin/gcc/3. .4/Debug/Intermediate/PythonPapa/StdVector.os -L/cygdrive/c/Build/cygwin/gcc/3.4.4/Debug -L/usr/local/lib -L/lib/python2.4/config -lPapaGateWay -lboost_python-gcc-mt-d-1_33_1 -lpython2.4 -lPapaGa eWay
Then there are ALOT of errors
Did you follow the advice here? http://www.boost.org/libs/python/doc/tutorial/doc/html/python/hello.html -- Dave Abrahams Boost Consulting www.boost-consulting.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users