Earlier, I complained about my C --> Python extensions not depending on their libraries.
But hey, it turns out -- upon reading the distutils source code -- that the (very smart) distutils people thought of this:
# the c++ extension module (needs to be linked in with libmotility...) extension_mod = Extension("motility._motilitymodule", ["_motilitymodule.cc"], include_dirs=['../src',], library_dirs=['../src',], libraries=['motility', 'stdc++'], -----> depends=['../src/libmotility.a',])
It turns out that this is, in fact, documented. O well, sometimes it's just easier to read the source code...
I wonder, though: wouldn't it make sense to have libraries automatically added to depends? There might be library search path problems -- I think the library search path is platform-specific -- but you could always just look for them in the specified library_dirs.
Squeeeeeeeeeeeeeeeeeak & Croquet
This tutorial on Croquet is very cool and answers many of my questions about what use Croquet is. To make use of it I have to learn Smalltalk, or I can wait until they have a Python API... Thanks for the reference, nymia!
The Story of Squeak is pretty cool, too.
C++ book recommendations
Marius Gedminas said:
I recommend Scott Meyer's _Effective_C++_ and _More_Effective_C++_ if you want good practical C++ books. There are also some good C++ resources on the Internet: Bjarne Stroustup's C++ Style and Technique FAQ at http://www.research.att.com/~bs/bs_faq2.html, Marshall Cline's C++ FAQ LITE at http://www.parashift.com/c++-faq-lite/, Herb Sutter's Guru of the Week series at http://www.gotw.ca/gotw/. When I used C++ I also appreciated articles by Andrew Koening, Barbara Moo, Scott Meyers, Herb Sutters in Dr. Dobb's Journal and in C/C++ Users Journal.
Guru of the Week looks particularly interesting; I like byte-sized chunks of info!
Kent Johnson also recommended "Effective C++". That may be a good starting point.
Thanks, guys. I guess posting lame C++ problems every week or so is a good way to get help ;).