Boost logo

Boost Users :

From: nagual (nagual_at_[hidden])
Date: 2004-05-09 08:27:10


Hello, All!

I try build Boost.Puthon use MinGW

g++ (GCC) 3.3.1 (mingw special 20030804-1)

command line:
cd C:\Lang\Projects\boost\libs\python\build\
bjam -sTOOLS=mingw -s"PYTHON_ROOT=C:\Lang\Python" -s"PYTHON_VERSION=2.3"

output:
...found 1165 targets...
...updating 19 targets...
gcc-C++-action
..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\slice.obj
In file included from C:/Lang/Projects/boost/libs/python/src/slice.cpp:1:
C:/Lang/Projects/boost/boost/python/slice.hpp:29: warning: `dllexport'
   attribute ignored
C:/Lang/Projects/boost/boost/python/slice.hpp:29: error: declaration does
not
   declare anything
C:/Lang/Projects/boost/boost/python/slice.hpp:29: error: syntax error before
`)
   ' token
C:/Lang/Projects/boost/libs/python/src/slice.cpp:18: error: prototype for `
   boost::python::slice::slice()' does not match any in class `
   boost::python::slice'
C:/Lang/Projects/boost/boost/python/slice.hpp:20: error: candidates are:
   boost::python::slice::slice(const boost::python::slice&)
C:/Lang/Projects/boost/boost/python/slice.hpp:240: error:

boost::python::slice::slice(boost::python::detail::new_non_null_reference_t*
)

C:/Lang/Projects/boost/boost/python/slice.hpp:240: error:
   boost::python::slice::slice(boost::python::detail::new_reference_t*)
C:/Lang/Projects/boost/boost/python/slice.hpp:240: error:
   boost::python::slice::slice(boost::python::detail::borrowed_reference_t*)
C:/Lang/Projects/boost/boost/python/slice.hpp:39: error:
   template<class Integer1, class Integer2, class Integer3>
   boost::python::slice::slice(Integer1, Integer2, Integer3)
C:/Lang/Projects/boost/boost/python/slice.hpp:34: error:
   template<class Integer1, class Integer2>
   boost::python::slice::slice(Integer1, Integer2)

"g++" -c -Wall -ftemplate-depth-100 -DBOOST_PYTHON_DYNAMIC_LIB
-DBOOST_PYTHON_SOURCE -g -O0 -fno-inline -mno-cygwin
-I"..\..\..\bin\boost\libs\python\build" -I "C:\Lang\Projects\boost"
-I "C:\Lang\ActiveState\Python\include"
-o"..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\slice.o
bj"
"C:\Lang\Projects\boost\libs\python\build\../src/slice.cpp"

[i skip other]

After change slice.hpp line19-30:
class BOOST_PYTHON_DECL slice : public object
{
 private:
    // Helper function to work around bugs in MSVC 6
    //BOOST_PYTHON_DECL
    static object new_slice(PyObject*, PyObject*, PyObject*);

 public:
 // Equivalent to slice(::)
 //BOOST_PYTHON_DECL
 slice();

slice.cpp compile ok.

But I recive bjam output:
...found 1165 targets...
...updating 19 targets...
gcc-C++-action
..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\slice.obj
gcc-Link-action
..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\boost_pyth
on_debug.dll
..\..\..\bin\boost\libs\python\build\boost_python.dll\mingw\debug\boost_pyth
on_debug.lib
spawn: Invalid argument

I build static version using command:
cd C:\Lang\Projects\boost\libs\python\build\
bjam -sTOOLS=mingw -s"PYTHON_ROOT=C:\Lang\ActiveState\Python" -s"PYTHON_VERS
ION=2.3" -s"BUILD=debug release" lib

Help my build Boost.Python library dynamic version using MinGW

With best regards, nagual. E-mail: nagual_at_[hidden]


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