---------- Forwarded message ----------
From: chun ping wang <cablepuff@gmail.com>
Date: May 31, 2007 1:24 PM
Subject: Boost python: cannot compile lambda
To: boost-users@list.boost.org

hi , while trying to compile boost.python i get these following errors.

ar: creating ./lib/libOperatingSystem.a
ranlib ./lib/libOperatingSystem.a
rm -f ./lib/DeadLockAvoid.o ./lib/ContainerOperation.o
make[1]: Leaving directory `C:/CPW/cs_classes'
g++.exe -Wall -D__DEBUG__ -c ./cs540/c++/DeadLockPythonWrapper.cpp -o ./boost_py
thon/DeadLockPythonWrapper.o -I"C:/Boost/include/boost_1_34"  -I"C:/Python25/inc
lude" -I"./Scripts"    -ansi -fexceptions -fverbose-asm -fexpensive-optimization
s -O3 -pg -g3
In file included from ./cs540/c++/DeadLockPythonWrapper.cpp:7:
./cs540/c++/cppdef/ContainerOperation.cpp: In function `CONT<T, std::allocator<_
CharT> > operator-(CONT<T, std::allocator<_CharT> >, CONT<T, std::allocator<_Cha
rT> >)':
./cs540/c++/cppdef/ContainerOperation.cpp:32: error: `_1' undeclared (first use
this function)
./cs540/c++/cppdef/ContainerOperation.cpp:32: error: (Each undeclared identifier
 is reported only once for each function it appears in.)
./cs540/c++/cppdef/ContainerOperation.cpp:32: error: `_2' undeclared (first use
this function)
./cs540/c++/cppdef/ContainerOperation.cpp: In function `CONT<T, std::allocator<_
CharT> > operator+(CONT<T, std::allocator<_CharT> >, CONT<T, std::allocator<_Cha
rT> >)':
./cs540/c++/cppdef/ContainerOperation.cpp:44: error: `_1' undeclared (first use
this function)
./cs540/c++/cppdef/ContainerOperation.cpp:44: error: `_2' undeclared (first use
this function)
./cs540/c++/cppdef/ContainerOperation.cpp: In function `CONT<T, std::allocator<_
CharT> > operator*(CONT<T, std::allocator<_CharT> >, CONT<T, std::allocator<_Cha
rT> >)':
./cs540/c++/cppdef/ContainerOperation.cpp:56: error: `_1' undeclared (first use
this function)
./cs540/c++/cppdef/ContainerOperation.cpp:56: error: `_2' undeclared (first use
this function)
./cs540/c++/cppdef/ContainerOperation.cpp: In function `CONT<T, std::allocator<_
CharT> > operator/(CONT<T, std::allocator<_CharT> >, CONT<T, std::allocator<_Cha
rT> >)':
./cs540/c++/cppdef/ContainerOperation.cpp:68: error: `_1' undeclared (first use
this function)
./cs540/c++/cppdef/ContainerOperation.cpp:68: error: `_2' undeclared (first use
this function)
./cs540/c++/cppdef/ContainerOperation.cpp: In function `CONT<T, std::allocator<_
CharT> > operator%(CONT<T, std::allocator<_CharT> >, CONT<T, std::allocator<_Cha
rT> >)':
./cs540/c++/cppdef/ContainerOperation.cpp:80: error: `_1' undeclared (first use
this function)
./cs540/c++/cppdef/ContainerOperation.cpp:80: error: `_2' undeclared (first use
this function)


Is there a way to integerate lambda into boost python.


OperatingSystemLib.mak works .. i just can't put lambda inside implementation file for boost.python.

thanks.