Compiling v4


I’m trying to compile the .dll files of v4 but I get the following error message:

Warning: You are using gcc version “4.2.3”. The earliest gcc version supported
with mex is “4.0.0”. The latest version tested for use with mex is “4.2.0”.
To download a different version of gcc, visit
-> gcc -c -I/opt/matlab/extern/include -DMATLAB_MEX_FILE -ansi -D_GNU_SOURCE -fexceptions -fPIC -pthread -m32 -D_FILE_OFFSET_BITS=64 -DMX_COMPAT_32 -O -DNDEBUG mjdgges/mjdgges.c -o …/2007b/mjdgges.o

-> gcc -c -I/opt/matlab/extern/include -DMATLAB_MEX_FILE -ansi -D_GNU_SOURCE -fexceptions -fPIC -pthread -m32 -D_FILE_OFFSET_BITS=64 -DMX_COMPAT_32 -O -DNDEBUG /opt/matlab/extern/src/mexversion.c -o …/2007b/mexversion.o

-> gcc -O -pthread -shared -m32 -Wl,–version-script,/opt/matlab/extern/lib/glnx86/ -Wl,–no-undefined -o …/2007b/mjdgges.mexglx …/2007b/mjdgges.o …/2007b/mexversion.o -lmwlapack -Wl,-rpath-link,/opt/matlab/bin/glnx86 -L/opt/matlab/bin/glnx86 -lmx -lmex -lmat -lm -lm -lstdc++

/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status

mex: link of '../2007b/mjdgges.mexglx' failed.

??? Error using ==> mex at 208
Unable to complete successfully.

Error in ==> build_matlab at 67
eval( COMPILE_COMMAND ’ mjdgges/mjdgges.c ’ LAPACK_PATH ]);

My system is Ubuntu 8.04 and Matlab version is 7.5.
Could anyone help?


Problem solved. I got the above posted error message since the command user@host~/$ dynare_v4/preprocessor/ make in was not correctly executed. Sorry for my previous precipitous post.