Prev: Replacing a NaN by it nanmean
Next: matlab error help
From: Nikolay S. on 1 Jul 2010 02:05 "Julian Xue" <jzxue(a)hotmail.com> wrote in message <hoc630$lm7$1(a)fred.mathworks.com>... > Hi! I was wondering if anyone got MEX to work under 64 bit Windows 7, using Visual C++ Express Edition 9.0? > > I followed all instructions on http://www.mathworks.com/support/solutions/en/data/1-6IJJ3L/index.html?solution=1-6IJJ3L exactly, and it had worked for me before on Windows Vista. Now, Matlab using mex -setup can certainly detect the compiler, but when I use it to compile something (such as yprime.c as in the example), I get the error: > > LINK : fatal error LNK1104: cannot open file 'yprime.mexw64' > > C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: Link of 'yprime.mexw64' failed. > > Is this a compiler error or a Matlab one? Could it be that my Visual C++ EE 9.0 > or my Microsoft Windows SDK is installed incorrectly? How would I find out? (I've never worked with Visual stuff, I've only used their compiler for Matlab mexing). Hi. I'm having similar issue :(
From: Matthew on 4 Jul 2010 01:32 I'm having a similar issue; linker complains when trying to build the rapid simulation target in Simulink. Here's the readout for a simple gain patch: ### Building the rapid accelerator target for model: gain Setting environment for using Microsoft Visual Studio 2008 Beta2 x64 tools. WindowsSdkDir not found Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. cl -DRSIM_PARAMETER_LOADING /wd4996 -DEXT_MODE /Od /Oy- /DNDEBUG -DMODEL=gain -DHAVESTDIO -DNRT -DRSIM_WITH_SL_SOLVER gain.c Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.01 for x64 Copyright (C) Microsoft Corporation. All rights reserved. gain.c Microsoft (R) Incremental Linker Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. /out:gain.exe gain.obj LINK : fatal error LNK1104: cannot open file 'kernel32.lib' NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2' Stop. The make command returned an error of 2 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, operable program or batch file. ### Real-Time Workshop build procedure for model: 'gain' aborted due to an error. "Julian Xue" <jzxue(a)hotmail.com> wrote in message <hoc630$lm7$1(a)fred.mathworks.com>... > Hi! I was wondering if anyone got MEX to work under 64 bit Windows 7, using Visual C++ Express Edition 9.0? > > I followed all instructions on http://www.mathworks.com/support/solutions/en/data/1-6IJJ3L/index.html?solution=1-6IJJ3L exactly, and it had worked for me before on Windows Vista. Now, Matlab using mex -setup can certainly detect the compiler, but when I use it to compile something (such as yprime.c as in the example), I get the error: > > LINK : fatal error LNK1104: cannot open file 'yprime.mexw64' > > C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: Link of 'yprime.mexw64' failed. > > Is this a compiler error or a Matlab one? Could it be that my Visual C++ EE 9.0 > or my Microsoft Windows SDK is installed incorrectly? How would I find out? (I've never worked with Visual stuff, I've only used their compiler for Matlab mexing).
|
Pages: 1 Prev: Replacing a NaN by it nanmean Next: matlab error help |