Generating Code from RTW and compiling using MSVC++ 2008 express edition
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I'm using Matlab 2010a (32bit) & MSVC++ 2008 express edition with SDk v6.1. I am able to build dll's using RTW for 32bit applications without any trouble.
However I cannot do the same for 64bit applications (obviously as Matlab 2010a is 32bit version).
Therefore I wonder if I can use the RTW generated code and take it into MSVC++ 2008 environment and compile the code targeting 64bit platform.
If possible, can someone kindly direct me to an example which does/explains the above step by step (as ive never ever used MSVC++ 2008 express edition GUI environment)?
PS: I've installed x64 components of the compiler.
Cheers,
댓글 수: 0
채택된 답변
Kaustubha Govind
2012년 3월 2일
I don't know if this has been tried before, so I can't provide a link to an existing example. However, it should definitely be possible. I think the easiest way is to select the System target file (in the Configuration Parameters window's Code Generation pane) that corresponds to "Create Visual C/C++ solution file" - this should create a Visual Studio project (solution file) that you can directly load into Visual Studio - hopefully the only changes you will need to make are the ones related to the x64 target.
댓글 수: 3
Kaustubha Govind
2012년 3월 5일
You should refer to Microsoft documentation for help using Visual Studio. You can grab all the header, source and library files needed for compilation using the packNGo function in MATLAB. See: http://blogs.mathworks.com/seth/2008/11/26/wheres-the-code/
Once you have all the required code, you can create a Visual Studio project just like you would with any other code.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deploy to C++ Applications Using MATLAB Data API (C++11)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!