Prev: remove alternate elements in a vector
Next: Trouble installing MatlabR2010a-linux on Ubunty 10.04 LTS
From: Matthew on 4 Jul 2010 01:45 I'm having the same issue. Here's the printout for a simple gain patch: ### Starting Real-Time Workshop build procedure for model: gain ### Generating code into build directory: C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw ### Invoking Target Language Compiler on gain.rtw ### Using System Target File: C:\Program Files\MATLAB\R2010a\rtw\c\grt\grt.tlc ### Loading TLC function libraries ...... ### Initial pass through model to cache user defined code .. ### Caching model source code ........................ ### Writing header file gain.h .. ### Writing header file gain_types.h ### Writing header file rtwtypes.h ### Writing source file gain.c .. ### Writing header file gain_private.h ### Writing header file rtmodel.h ### Writing header file rt_nonfinite.h .. ### Writing source file rt_nonfinite.c ### Writing header file rtGetInf.h ### Writing source file rtGetInf.c .. ### Writing header file rtGetNaN.h ### Writing source file rtGetNaN.c ### TLC code generation complete. .. ### Processing Template Makefile: C:\Program Files\MATLAB\R2010a\rtw\c\grt\grt_vcx64.tmf ### gain.mk which is generated from C:\Program Files\MATLAB\R2010a\rtw\c\grt\grt_vcx64.tmf is up to date ### Building gain: .\gain.bat C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\..\..\VC\bin\vcvars64" Setting environment for using Microsoft Visual Studio 2008 Beta2 x64 tools. WindowsSdkDir not found C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>cd . C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>nmake -f gain.mk GENERATE_REPORT=0 Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. 'cmd' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'cmd' : return code '0x1' Stop. C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>An_error_occurred_during_the_call_to_make '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. "fabian " <fabian.risch(a)mavt.ethz.ch> wrote in message <htootl$bpd$1(a)fred.mathworks.com>... > Dear all, > > I am getting a linking error when using realtime Workshop to create a standalone from a simulink model which includes a library. > > I am trying to create a standalone from a simulink model using Matlabs Realtime Workshop. The simulink model consists of a s function builder block which includes a C++ library (MyLIBcpp.lib). The s function builder block simply calls some functions from the library and gets some return values. The model itself compiles and runs. However, if I try to create a standalone with rtw I get the following linking error: > > MyLIBcpp.lib(FooMatlab.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification > MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE(a)ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) > MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0(a)ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) > LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library > ..\WillItBend.exe : fatal error LNK1169: one or more multiply defined symbols found > NMAKE : fatal error U1077: '"c:\program files\microsoft visual studio 9.0\VC\BIN\link.EXE"' : return code '0x491' > Stop. > > The library was created with Microsoft Visual Studio 2008 and I use its compiler in Matlab. I am using Matlab R2010a. > > Specifically, I couldnt figure out where to set the' /NODEFAULTLIB:library' option. > > Any hints are greatly appreciated. > > Fabian
From: Phil Goddard on 5 Jul 2010 00:54 "fabian " <fabian.risch(a)mavt.ethz.ch> wrote in message <htootl$bpd$1(a)fred.mathworks.com>... > Dear all, > > I am getting a linking error when using realtime Workshop to create a standalone from a simulink model which includes a library. > > I am trying to create a standalone from a simulink model using Matlabs Realtime Workshop. The simulink model consists of a s function builder block which includes a C++ library (MyLIBcpp.lib). The s function builder block simply calls some functions from the library and gets some return values. The model itself compiles and runs. However, if I try to create a standalone with rtw I get the following linking error: > > MyLIBcpp.lib(FooMatlab.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification > MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE(a)ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) > MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0(a)ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) > LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library > ..\WillItBend.exe : fatal error LNK1169: one or more multiply defined symbols found > NMAKE : fatal error U1077: '"c:\program files\microsoft visual studio 9.0\VC\BIN\link.EXE"' : return code '0x491' > Stop. > > The library was created with Microsoft Visual Studio 2008 and I use its compiler in Matlab. I am using Matlab R2010a. > > Specifically, I couldnt figure out where to set the' /NODEFAULTLIB:library' option. > > Any hints are greatly appreciated. > > Fabian This is a response to the OP on May 28th: The /NODEFAULTLIB option can be set within your mexopts.bat file, which can be found by typing the following at the MATLAB command prompt, >> edit(fullfile(prefdir, 'mexopts.bat')) Do a search at www.mathworks.com for the word NODEFAULTLIB and several articles will be found related to this topic, noticably http://www.mathworks.com/support/solutions/en/data/1-12L4PQ/?solution=1-12L4PQ Phil.
From: Phil Goddard on 5 Jul 2010 00:58 "Matthew " <mdburns(a)ucsd.edu> wrote in message <i0p75g$2fv$1(a)fred.mathworks.com>... > I'm having the same issue. Here's the printout for a simple gain patch: > ### Starting Real-Time Workshop build procedure for model: gain > ### Generating code into build directory: C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw > ### Invoking Target Language Compiler on gain.rtw > ### Using System Target File: C:\Program Files\MATLAB\R2010a\rtw\c\grt\grt.tlc > ### Loading TLC function libraries > ..... > ### Initial pass through model to cache user defined code > . > ### Caching model source code > ....................... > ### Writing header file gain.h > . > ### Writing header file gain_types.h > ### Writing header file rtwtypes.h > ### Writing source file gain.c > . > ### Writing header file gain_private.h > ### Writing header file rtmodel.h > ### Writing header file rt_nonfinite.h > . > ### Writing source file rt_nonfinite.c > ### Writing header file rtGetInf.h > ### Writing source file rtGetInf.c > . > ### Writing header file rtGetNaN.h > ### Writing source file rtGetNaN.c > ### TLC code generation complete. > . > ### Processing Template Makefile: C:\Program Files\MATLAB\R2010a\rtw\c\grt\grt_vcx64.tmf > ### gain.mk which is generated from C:\Program Files\MATLAB\R2010a\rtw\c\grt\grt_vcx64.tmf is up to date > ### Building gain: .\gain.bat > > C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\..\..\VC\bin\vcvars64" > Setting environment for using Microsoft Visual Studio 2008 Beta2 x64 tools. > WindowsSdkDir not found > > C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>cd . > > C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>nmake -f gain.mk GENERATE_REPORT=0 > > Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 > Copyright (C) Microsoft Corporation. All rights reserved. > > 'cmd' is not recognized as an internal or external command, > operable program or batch file. > NMAKE : fatal error U1077: 'cmd' : return code '0x1' > Stop. > > C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>echo The make command returned an error of 2 > The make command returned an error of 2 > > C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>An_error_occurred_during_the_call_to_make > '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. This is a response to the posting on July 4th: Your problem/error is not in any way related to the OP and you should have started a new thread. It looks like you haven't installed the Windows SDK which is required for the 64-bit version of VS-Express. Take a look at the following link http://www.mathworks.com/support/solutions/en/data/1-6IJJ3L/?solution=1-6IJJ3L Phil.
From: Matthew on 5 Jul 2010 01:08 Phil, Thanks for your reply. The SDK is installed. Have been working this issue for some time and I was hoping someone who might have had a similar problem would see this and answer. Thanks. "Phil Goddard" <philNOSPAM(a)goddardconsulting.ca> wrote in message <i0roos$981$1(a)fred.mathworks.com>... > "Matthew " <mdburns(a)ucsd.edu> wrote in message <i0p75g$2fv$1(a)fred.mathworks.com>... > > I'm having the same issue. Here's the printout for a simple gain patch: > > ### Starting Real-Time Workshop build procedure for model: gain > > ### Generating code into build directory: C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw > > ### Invoking Target Language Compiler on gain.rtw > > ### Using System Target File: C:\Program Files\MATLAB\R2010a\rtw\c\grt\grt.tlc > > ### Loading TLC function libraries > > ..... > > ### Initial pass through model to cache user defined code > > . > > ### Caching model source code > > ....................... > > ### Writing header file gain.h > > . > > ### Writing header file gain_types.h > > ### Writing header file rtwtypes.h > > ### Writing source file gain.c > > . > > ### Writing header file gain_private.h > > ### Writing header file rtmodel.h > > ### Writing header file rt_nonfinite.h > > . > > ### Writing source file rt_nonfinite.c > > ### Writing header file rtGetInf.h > > ### Writing source file rtGetInf.c > > . > > ### Writing header file rtGetNaN.h > > ### Writing source file rtGetNaN.c > > ### TLC code generation complete. > > . > > ### Processing Template Makefile: C:\Program Files\MATLAB\R2010a\rtw\c\grt\grt_vcx64.tmf > > ### gain.mk which is generated from C:\Program Files\MATLAB\R2010a\rtw\c\grt\grt_vcx64.tmf is up to date > > ### Building gain: .\gain.bat > > > > C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\..\..\VC\bin\vcvars64" > > Setting environment for using Microsoft Visual Studio 2008 Beta2 x64 tools. > > WindowsSdkDir not found > > > > C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>cd . > > > > C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>nmake -f gain.mk GENERATE_REPORT=0 > > > > Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 > > Copyright (C) Microsoft Corporation. All rights reserved. > > > > 'cmd' is not recognized as an internal or external command, > > operable program or batch file. > > NMAKE : fatal error U1077: 'cmd' : return code '0x1' > > Stop. > > > > C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>echo The make command returned an error of 2 > > The make command returned an error of 2 > > > > C:\Users\user\Documents\MATLAB\Test\gain_grt_rtw>An_error_occurred_during_the_call_to_make > > '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. > > This is a response to the posting on July 4th: > > Your problem/error is not in any way related to the OP and you should have started a new thread. > It looks like you haven't installed the Windows SDK which is required for the 64-bit version of VS-Express. > Take a look at the following link > http://www.mathworks.com/support/solutions/en/data/1-6IJJ3L/?solution=1-6IJJ3L > > Phil.
From: Phil Goddard on 5 Jul 2010 01:17 The error message says, in part > > > Setting environment for using Microsoft Visual Studio 2008 Beta2 x64 tools. > > > WindowsSdkDir not found Can you find where in the make process this is being searched for? Can you see where it thinks the directory is, and whether you have that directory (or not)? I don't have a 64-bit machine so can't try anything at my end, but if you've been chasing it down for a while I'd recommend emailing support(a)mathworks.com and trying to work it out with them. Phil.
|
Next
|
Last
Pages: 1 2 Prev: remove alternate elements in a vector Next: Trouble installing MatlabR2010a-linux on Ubunty 10.04 LTS |