compile version 4.1 in Ubuntu

Hi,
I've followed the instructions on the Wiki page for installation of Dynare from source.
The "make check" works fine. Yet when I try to run Dynare from Matlab I get the error message
Notice that I have
(I also compiled using make CXX=g++-4.1 with same results)
Best
Gianni
I've followed the instructions on the Wiki page for installation of Dynare from source.
The "make check" works fine. Yet when I try to run Dynare from Matlab I get the error message
??? Invalid MEX-file '/home/gianni/gianni/dynare_docs/dynare-4.1.0/matlab/../mex/matlab/k_order_perturbation.mexglx': /opt/matlab/bin/glnx86/../../sys/os/glnx86/libgcc_s.so.1: version `GCC_4.0.0' not found (required by /home/gianni/gianni/dynare_docs/dynare-4.1.0/matlab/../mex/matlab/k_order_perturbation.mexglx).
Notice that I have
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
(I also compiled using make CXX=g++-4.1 with same results)
Best
Gianni