Error in msvc in building inheritance.obj to build hello.pyd
31_0\boost/mem_fn.hpp(315) : error C2501: 'dm' : missing
storage-class or type specifiers
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2059: syntax error : ';'
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2059: syntax error : '<'
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2653: 'T' : is not a
class or namespace name
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2645: no qualified name
for pointer to member (found ':: *')
W:\boost_1_31_0\boost/mem_fn.hpp(320) : error C2143: syntax error :
missing ';' before '}'
W:\boost_1_31_0\boost/mem_fn.hpp(320) : fatal error C1506:
unrecoverable block scoping error
rem The problem area in mem_fn.hpp is here ...
creating a template class at the end of mem_fn.hpp
template _mfi::dm mem_fn(R T::*f)
{
return _mfi::dm(f);
}
} // namespace boost
rem build hello world
W:
vcvars32.bat
set PYTHON_ROOT=F:\Python23
set PYTHON_VERSION=2.3
set PATH=%PATH%;W:\boost_1_31_0\tools\build\jam_src\bin.ntx86
rem APPEND THE BJAM PATH ABOVE TO THE SYSTEM ENVRONMENT VARIABLE PATH
cd W:\boost_1_31_0\libs\python\example\tutorial
bjam -sTOOLS=msvc
The results are as follows
W:\boost_1_31_0\libs\python\example\tutorial>bjam -sTOOLS=msvc
...found 1978 targets...
...updating 7 targets...
vc-C++
..\..\..\..\bin\boost\libs\python\build\boost_python.dll\msvc\debug\inheritance.obj
inheritance.cpp
W:\boost_1_31_0\boost/graph/detail/adjacency_list.hpp(1055) : error
C2244: 'bidirectional_graph_helper_with_property::remove_edge'
: unable to resolve function overload
W:\boost_1_31_0\boost/graph/detail/adjacency_list.hpp(1057) : error
C2954: template definitions cannot nest
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2039: 'dm' : is not a
member of '_mfi'
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2143: syntax error :
missing ';' before '<'
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2501: 'dm' : missing
storage-class or type specifiers
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2059: syntax error : ';'
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2059: syntax error : '<'
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2653: 'T' : is not a
class or namespace name
W:\boost_1_31_0\boost/mem_fn.hpp(315) : error C2645: no qualified name
for pointer to member (found ':: *')
W:\boost_1_31_0\boost/mem_fn.hpp(320) : error C2143: syntax error :
missing ';' before '}'
W:\boost_1_31_0\boost/mem_fn.hpp(320) : fatal error C1506:
unrecoverable block scoping error
"cl" /Zm800 -nologo -GX -c -DBOOST_PYTHON_DYNAMIC_LIB
-DBOOST_PYTHON_SOURCE /Z7 /Od /Ob0 /GX /GR /MDd
-I"..\..\..\..\bin\boost\libs\python\build" -I"W:\boost_1_31_0"
-I"F:\Python23\include" -I"F:\PROGRA~1\MICROS~3\VC98\include"
-Fo"..\..\..\..
\bin\boost\libs\python\build\boost_python.dll\msvc\debug\inheritance.obj"
-Tp"W:\boost_1_31_0\libs\python\build\../src/object/inheritance.cpp"
...failed vc-C++
..\..\..\..\bin\boost\libs\python\build\boost_python.dll\msvc\debug\inheritance.obj...
...skipped
<@boost!libs!python!build\boost_python.dll\msvc\debug>boost_python.CMD
for lack of
<@boost!libs!python!build\boost_python.dll\msvc\debug>inheritance.obj...
...skipped
<@boost!libs!python!build\boost_python.dll\msvc\debug>boost_python.dll
for lack of
<@boost!libs!python!build\boost_python.dll\msvc\debug>boost_python.CMD...
...skipped
<@boost!libs!python!build\boost_python.dll\msvc\debug>boost_python.lib
for lack of
<@boost!libs!python!build\boost_python.dll\msvc\debug>boost_python.CMD...
...skipped
<@boost!libs!python!example!tutorial\hello.pyd\msvc\debug>hello.CMD for
lack of
<@boost!libs!python!build\boost_python.dll\msvc\debug>boost_python.lib...
...skipped
<@boost!libs!python!example!tutorial\hello.pyd\msvc\debug>hello.pyd for
lack of
<@boost!libs!python!build\boost_python.dll\msvc\debug>boost_python.dll...
...skipped
<@boost!libs!python!example!tutorial\hello.pyd\msvc\debug>hello.lib for
lack of
<@boost!libs!python!build\boost_python.dll\msvc\debug>boost_python.dll...
...failed updating 1 target...
...skipped 6 targets...
W:\boost_1_31_0\libs\python\example\tutorial>dir hello*.*
rem results: ALL hello.CMD hello.pyd hello.lib NOT FOUND
Any Ideas about a possible solution?
AIM
--
http://mail.python.org/mailman/listinfo/python-list
Re: Error in msvc in building inheritance.obj to build hello.pyd
Donne Leen, Thanks, thats a very good solution. I am glad to hear that the later solution works for you. I will try to get the 1.32.0 source Monday. I will try to compile again next week. Andre Mikulec AIM -- http://mail.python.org/mailman/listinfo/python-list
Re: MS VC++ Toolkit 2003, where?
The site comes back with a message saying ... "The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page." Does anyone have any other ideas of where to look? -- http://mail.python.org/mailman/listinfo/python-list
Looking for a Python wrapper for Nvidia Cg
Hello all, I am working on some games and some Nvidia Cg graphics. I am looking for python that provides wrappers over the Nvidia Cg API. Does anyone know where I may find what I am looking for? AIM -- http://mail.python.org/mailman/listinfo/python-list
setup.py on unix/linux and converting to windows
Hi all, I have a general question and some advice is needed. Over time, I am running into python modules with setups that are just made for linux/unix. I have python installed on windows. To get these modules into windows, should I do the following? (1) Install cygwin. (2) compile/setup the python modules in the cygwin enviroment. (3) Copy the new (installed) files to my python on windows environment (specifically and most likely the site-packages directory. What do you think about this? In most cases will this work? In what cases will this not work? Sometimes threading will not work? Thank you very much. AIM -- http://mail.python.org/mailman/listinfo/python-list
