Compiling of MEXW32 in 64 bit system

6 views (last 30 days)
niharika
niharika on 7 Oct 2013
Commented: Jan on 7 Oct 2013
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 Comments
Kaustubha Govind
Kaustubha Govind on 7 Oct 2013
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 on 7 Oct 2013
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.

Sign in to comment.

Answers (1)

Jan
Jan on 7 Oct 2013
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 Comments
niharika
niharika on 7 Oct 2013
Then there is no way to use the mexw32 file in 64 bit environment???
Jan
Jan on 7 Oct 2013
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).

Sign in to comment.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!