Dear Sebastien,
When trying to use the use_dll-option with Dynare 4.3.0 or .2 (Windows 7 64 with Visual Studio 2010), I get the following error message:
LINK : error LNK2001: unresolved external symbol Dynamic
C:\Users\Johannes\AppData\Local\Temp\mex_yBgjEV\templib.x : fatal error LNK1120: 1 unresolved externals
C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: Link of 'example1_static.mexw64' failed.
??? Error using ==> mex at 208
Unable to complete successfully.
Error in ==> example1 at 66
eval('mex -O LINKFLAGS="$LINKFLAGS /export:Dynamic" example1_static.c example1_static_mex.c')
Error in ==> dynare at 120
evalin('base',fname) ;
4.2.5 runs on the same machine with use_dll. Any idea what is going on? This is a replication of the problem described here: http://www.dynare.org/phpBB3/viewtopic.php?f=1 http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=4351 &t=4351
The generated C-files are attached.
Best,
Johannes
--
Johannes Pfeifer
Haußerstr. 29
72076 Tübingen
Tel.: +49-(0)7071-6396184
Mobil.: +49-(0)170-6936820
Germany
Le lundi 28 janvier 2013 à 23:29 +0100, Johannes Pfeifer a écrit :
When trying to use the use_dll-option with Dynare 4.3.0 or .2 (Windows 7 64 with Visual Studio 2010), I get the following error message:
I am having trouble installing MSVC in my Windows 7 virtual machine (for some unknown reason, MATLAB does not detect it). I actually haven't tested it for ages.
At this point, I am therefore considering dropping support for that compiler, and requiring that people use MinGW instead.
Is there any reason to support MSVC? I don’t really see the point of supporting it, but maybe I am missing something.
Le mercredi 30 janvier 2013 à 11:53 +0100, Sébastien Villemot a écrit :
Le lundi 28 janvier 2013 à 23:29 +0100, Johannes Pfeifer a écrit :
When trying to use the use_dll-option with Dynare 4.3.0 or .2 (Windows 7 64 with Visual Studio 2010), I get the following error message:
I am having trouble installing MSVC in my Windows 7 virtual machine (for some unknown reason, MATLAB does not detect it). I actually haven't tested it for ages.
Ok I finally managed to install it. Actually it worked when I installed the Microsoft Windows SDK. I therefore updated the ConfigureMatlabWindowsForMexCompilation wiki page accordingly.
Then I fixed the problem with MEX compilation. Actually it was broken with both Cygwin and MSVC since Dynare 4.3.0…
Johannes: please confirm that it fixes the problem for you. Then I will provide an updated binary of the preprocessor for our user in the forum.
Dear Sébastien,
Great. Thanks for looking into it. I can confirm it solves the issue on my machine.
Best,
Johannes
-- Johannes Pfeifer Haußerstr. 29 72076 Tübingen Tel.: +49-(0)7071-6396184 Mobil.: +49-(0)170-6936820 Germany
-----Ursprüngliche Nachricht----- Von: dev-bounces@dynare.org [mailto:dev-bounces@dynare.org] Im Auftrag von Sébastien Villemot Gesendet: Mittwoch, 30. Januar 2013 14:08 An: dev@dynare.org Betreff: Re: [DynareDev] MSVC in Dynare 4.3
Le mercredi 30 janvier 2013 à 11:53 +0100, Sébastien Villemot a écrit :
Le lundi 28 janvier 2013 à 23:29 +0100, Johannes Pfeifer a écrit :
When trying to use the use_dll-option with Dynare 4.3.0 or .2 (Windows 7 64 with Visual Studio 2010), I get the following error message:
I am having trouble installing MSVC in my Windows 7 virtual machine (for some unknown reason, MATLAB does not detect it). I actually haven't tested it for ages.
Ok I finally managed to install it. Actually it worked when I installed the Microsoft Windows SDK. I therefore updated the ConfigureMatlabWindowsForMexCompilation wiki page accordingly.
Then I fixed the problem with MEX compilation. Actually it was broken with both Cygwin and MSVC since Dynare 4.3.0…
Johannes: please confirm that it fixes the problem for you. Then I will provide an updated binary of the preprocessor for our user in the forum.
-- Sébastien Villemot Researcher in Economics Dynare developer http://www.dynare.org/sebastien