I don’t know if this is a problem or not, but I noticed that I have no g++-4.1, just the default g++ that comes with sudo apt-get install build-essential. Using apt-get install gcc-4.1 does not make a g++4.1 because it is considered to be obsolete for ubuntu 10.10 & 10.04 (maybe others also, I just checked these). There is a g++-4.4 though and a g++ linked to it.
I think I may have to install gcc-4.1 from the source code. That’s what the ubuntu forums suggest in these situations, but I was hoping to find an easier way.
Thanks in advance for your help,