Compiling of MEXW32 in 64 bit system

5 次查看(过去 30 天)
niharika
niharika 2013-10-7
评论: Jan 2013-10-7
Hi
I have recently upgraded my system to windows 7. I need to recompile all my libraries in 64 bit to use them. Can any one help me how to recompile mexw32 in 64 bit so that i can get mexw64 and i can use them successfully.
Thanks in Advance.
  2 个评论
Kaustubha Govind
Kaustubha Govind 2013-10-7
Not sure what you mean by libraries - do these just include MEX-files, or other standalone libraries that your MEX-files link against? For MEX-files, you can just use the mex command on your 64-bit machine to obtain 64-bit MEX-files.
niharika
niharika 2013-10-7
i mean mex files. I tried mex command but i am getting an error as below
mex CIONDO.c -O -output NDO
CIONDO.c
CIONDO.c(51) : fatal error C1083: Cannot open include file: 'ecdu_mbd_interface_data.h': No such file or directory
C:\RW_APPS\MATLAB\R2010B~1\BIN\MEX.PL: Error: Compile of 'CIONDO.c' failed.
??? Error using ==> mex at 208 Unable to complete successfully.

请先登录,再进行评论。

回答(1 个)

Jan
Jan 2013-10-7
You cannot compile a mexw32 to a mexw64. You require to compile the C-, C++, Fortran or whatever source files again. Notice that e.g. C and C++ contain a lot of dangerous pitfalls for the conversion from 32 to 64 bit code. This is not trivial and an exhaustive testing is obligatory.
  2 个评论
niharika
niharika 2013-10-7
Then there is no way to use the mexw32 file in 64 bit environment???
Jan
Jan 2013-10-7
You can install a 32 bit version of Matlab easily on a Windows64 computer. Then you still need the 32 bit libraries, but cannot profit from the 64 bit addressing (huge arrays etc).

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by