December 2005 Archives

The incomplete transcript can be found on my site. I hope to have the transcript done by the beginning of the next year. If you're not interested in the latest and greatest you might want to wait for the finished transcript, which I hope will be available directly from Perlcast.

Compiling Inline::Python 0.22 on Win32

| No TrackBacks

I recently tried to compile Inline::Python 0.22 on Win32 with Visual C++ 7.1. I started with the usual build mantra.

perl Makefile.PL
nmake test
nmake install

But I only got up to "nmake," and got hit by the following compiler error.

perlmodule.c(160) : error C2099: initializer is not a constant

By the way, it's the very same thing with Visual C++ 8.0, also known as Visual C++ 2005.

The problem comes from the following code snippet.

DL_EXPORT(PyTypeObject) PerlPkg_type = {
  0,                            /*ob_size*/

The offending part is "PyObject_HEAD_INIT(&PyType_Type)" because it is not strictly conforming C, as explained in the Python documentation. The solution is also explained there: Replace the construct with the following one.


There are two more places with the same construct, which I had to replace too. Another "nmake," and the module was compiled. The test were passing too.

>nmake test
All tests successful, 58 subtests skipped.

I recently started transcripts of Perlcast interviews. In case you don't know, Perlcast is a podcast devoted to Perl, in my opinion well worth listening to. The first transcript of Perlcast's interview with Richard Foley is available at Perlcast. Complete and incomplete transcripts are available on my Perlcast corner too.

I am planning for about one transcript per month, depending on my real life workload.

Blogging... Again

| No TrackBacks

This is the third time I am setting up a weblog. Previous attempts with blogging were, well, only moderately successful. I just couldn't get myself to write down a few lines every now and then. We'll see how this one goes.

I've been looking around for good blogging software for some time. It would have been nice to have something that integrates well with Apache Forrest, so that it integrates nicely with the rest of my side. Obviously, that didn't work out. I have decided for Movable Type because it's simple to install, especially if the ISP has a decent Perl installation, which mine had, and seems to be very usable.

I don't have any specific focus for this blog. I guess it will just be a random log of my brain. Having a system log is often actually a good thing, though the random part may limit its usefullness for others. My brain seems to like random stuff. At least that's what it likes to think...

About this Archive

This page is an archive of entries from December 2005 listed from newest to oldest.

May 2006 is the next archive.

Find recent content on the main index or look in the archives to find all content.