Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Compiler Issue on 64 bit system.
조회 수: 3 (최근 30일)
이전 댓글 표시
I’ve a 64 bit DELL workstation. When I run a ‘Cpp’ code in matlab(32 bit) using mex command and using ‘Microsoft Visual C++ 6.0’ compiler I get some result. Now if I run the same code in Visual Studio 2010a I'm getting different result. I wonder if 64 bit system is the problem. Earlier I had a patch for VS 2010a, now that patch is removed from Matlab website that's why I use ‘Microsoft Visual C++ 6.0’ compiler.
댓글 수: 2
Herbert
2013년 7월 19일
I've had also a lot of issues with different compilers, in the end the Win SDK compiler solved some of theses issues. Have you already tried this one? http://www.mathworks.de/support/compilers/R2013a/index.html
Friedrich
2013년 7월 19일
For now I would say it sounds like a bug in the C/C++ code w.r.t. to memory handling.
답변 (1개)
Jan
2013년 7월 19일
편집: Jan
2013년 7월 19일
32 and 64 bit compilers behave differently when the programmer assume, that e.g. size_t is equal to int or to int32. Using mwSize, mwIndex and mwSignedIndex is a secure way to write platform independent MEX files.
You find a lot of instruction of how to migrate a 32 bit C-program to 64 bit. But this problem does not concern Matlab, but CPP and therefore I suggest asking Google and searching in a CPP forum instead.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!