Boost Python tutorial needs MSVC?
Hi, Has anyone here built Boost.Python modules under MinGW? I'm trying to build the Boost.Python tutorial under MinGW and getting an error that says it depends on MSVC, which puzzles me because Boost built using g++. Here's some of my output: [EMAIL PROTECTED] /c/Boost/libs/python/example/tutorial $ bjam -sTOOLS=mingw -d+2 ...found 1508 targets... ...updating 32 targets... vc-C++ bin\boost\libs\python\build\boost_python.dll\vc-7_1\debug\threading-multi\numeric.obj '"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\VCVARS32.BAT"' is not recognized as an internal or external command, operable program or batch file. CALL "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\VCVARS32.BAT" >nul "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\cl" /Zm800 -nologo /EHsc -c -DBOOST_PYTHON_DYNAMIC_LIB -DBOOST_PYTHON_SOURCE /Z7 /Od /Ob0 /EHsc /GR /MDd /Op /wd4675 /Zc:forScope /Zc:wchar_t -I"bin\boost\libs\python\build" -I"c:\Boost" -I"c:\Python24\include" -Fo"bin\boost\libs\python\build\boost_python.dll\vc-7_1\debug\threading-multi\numeric.obj" -Tp"c:\Boost\libs\python\build\../src/numeric.cpp" [etc.] 1. I'm using the standard Python.org windows Python interpreter for Python 2.4.3 (Enthought edition), and mingw g++ 3.4.5. 2. PYTHON_ROOT and PYTHON_VERSION have been set to /c/Python24 and 2.4 respectively. 3. I'm running the unmodified Jamfile/Jamrules straight from the Boost subdirectory, and as you can see I'm using the sTOOLS=gcc option. 4. So why is it looking for Visual Studio and how do I stop it? Any ideas much appreciated. -Max Wilson -- http://mail.python.org/mailman/listinfo/python-list
Re: Boost Python tutorial needs MSVC?
Cancel that--I found the answer. http://groups.google.com/group/boost-list/browse_frm/thread/5a17077679a33dca/7360f2038d6e6cca?lnk=gst&q=bjam+mingw&rnum=3#7360f2038d6e6cca Short answer: bjam.exe should not be in /bin or /usr/bin because MinGW treats programs in there differently. In my case I simply copied bjam.exe to my working directory, for now. -Max Wilson -- http://mail.python.org/mailman/listinfo/python-list
Re: scopes of local and global variable
Pyenos wrote: > does class WORK inherit t_len=0 from line1? > > does def getwork() inherit t_len=0 from line1? > > does def formattable(table_to_process,type) inherit t_len=0 from line1? > > does def format_t() inherit t_len=0 from line1? Not really, no. The global t_len is different than the local t_len--two variables with the same name. You need to declare "global t_len" inside your function so it knows that "t_len=..." is assigning to the old, global variable instead of creating a new one. See #6 here: http://zephyrfalcon.org/labs/python_pitfalls.html -Max -- http://mail.python.org/mailman/listinfo/python-list
Re: Help Required for Choosing Programming Language
On Feb 17, 1:35 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > But I've done extensive, cross-platform development with Qt. And can > assert that it is unmatched in productivity and feature richness, > especially when combined with python. And certainly beat VB, and most > probably even delphi (albeit I haven't done too much in that to really > put all my weight behind these words). [snip] Thanks for the pointer--my hobby right now is a GURPS-based wargame and I'm still looking for a good front-end generator. pygsear seems nice in a lot of ways, but it's possible Qt will require less development on my part. (I need to have one window, but split into separate panels in the style of old RPGs like Wizardry and Bard's Tale.) I'll have a look. -Maximilian -- http://mail.python.org/mailman/listinfo/python-list
