Error message - gensylv.dll

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Error message - gensylv.dll

Postby TimRobinson » Thu Sep 27, 2007 2:15 am

Hi,
When I try to use the stoch_simul command in examples from "Practicing Dynare" or the User's Guide I get to following error message:

??? Invalid MEX-file 'C:\dynare_v3\matlab\gensylv.dll': The specified
procedure could not be found.

If I change order to 1 everything works fine. Have I not installed Dyanre correctly? If so, how can I fix it?

Thanks,
Tim
TimRobinson
 
Posts: 3
Joined: Thu Sep 27, 2007 1:52 am

Postby OndraKamenik » Thu Sep 27, 2007 8:10 pm

Tim,

the gensylv module is used for Sylvester equation, which is only needed in the second order.

If Matlab whines about an invalid mex-file, then probably the Matlab dynamic loader couldn't load the dll. There might be quite a few reasons for this. A very different version of Matlab, or a confusion of paths and different versions of Matlab on one machine, or you miss some library (other dll) which gensylv.dll is linked to (or the version of a library to which gensylv.dll is linked to is not compatible). I created gensylv module, and I am sure (provided that the library was linked properly by Michel), that it should depend only on standard Win32 libraries and then on lapack/blas from Matlab distribution. Try to use DependecyWalker (google and download) on gensylv.dll and see if you miss any dependencies. Try to fix any confusion in windows PATHs if multiple versions of Matlab on one machine. And, try to compile and link the library on your own for your Matlab environment.

regards,

Ondra K.
OndraKamenik
 
Posts: 73
Joined: Mon Dec 20, 2004 8:32 am

Postby dhargreaves » Tue Jun 03, 2008 5:09 am

if it is of interest, I have generated that error in R2008a, then gone back to R2007a and got the same code to run. So it may be a latest version of Matlab issue
dhargreaves
 
Posts: 7
Joined: Wed May 02, 2007 3:30 am

gensylv.dll error

Postby tonhir » Sat Jul 19, 2008 4:41 am

Hi,
I also receive the same error message when I run dynare using either of the two newest versions of Matlab: versions 2007b or 2008a. Earlier versions of Matlab work fine. Is there any more information on potential fixes?
Toni
tonhir
 
Posts: 2
Joined: Fri Oct 06, 2006 2:45 am

Postby SébastienVillemot » Sat Jul 19, 2008 8:18 am

Hi,

A workaround is probably to get the version of gensylv which is distributed with Dynare v4, and which works for recent versions of Matlab.

The file is mex/2007b/gensylv.mexw32 in Dynare v4 snapshot. Remove your old gensylv.dll and replace it by that file.

Another solution is simply to switch to Dynare v4.

Sébastien
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Does anyone could send the file?

Postby Cristiano_italy » Wed Aug 06, 2008 8:28 am

Hi
I have the same problem with version R2007b
At work I do not have the rights to install programs so I cannot install the tools to get version 4. Is there any other way to get the file or somebody could send it?

cheers
Cristiano_italy
 
Posts: 9
Joined: Tue Jun 24, 2008 11:14 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests