compiling v4

As Dynare 4 is now the main version, this forum is now closed. Please, post
on the Dynare Help forum
Forum rules
As Dynare 4 is the current Dynare version, there forum is now close. Post new question in the Dynare Help Forum.

compiling v4

Postby atanas » Tue Jul 01, 2008 7:11 pm

Hi,

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 http://gcc.gnu.org
-> 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/mexFunction.map -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?

atanas
atanas
 
Posts: 3
Joined: Mon Jun 23, 2008 3:01 pm

compiling v4

Postby atanas » Wed Jul 02, 2008 6:15 pm

Problem solved. I got the above posted error message since the command
Code: Select all
user@host~/$ dynare_v4/preprocessor/ make
in was not correctly executed. Sorry for my previous precipitous post.
atanas
 
Posts: 3
Joined: Mon Jun 23, 2008 3:01 pm


Return to Dynare version 4

Who is online

Users browsing this forum: No registered users and 2 guests