Tracy,

This dumb batch file is what I use to build all my MEX files. It's kind of 
dumb but with this approach I can build with whatever compiler I want and I 
don't even need the whole Matlab installed (only the necessary .lib and .h 
files)
See if it can help.

https://code.google.com/p/mirone/source/browse/trunk/mex/compile_one.bat




Quarta-feira, 3 de Dezembro de 2014 0:13:45 UTC, Tracy Wadleigh escreveu:
>
> Elliot:
>
> The (unhelpful) error:
>
> >> mexjulia
> Invalid MEX-file 'U:\prj\mexjulia\mexjulia.mexw64': Invalid access to 
> memory location.
>
> My understanding is that this is due to some DLL that fails to be found. I 
> tried to step through with gdb (in cygwin) to see if I could get more 
> information about what wasn't getting found, only to find that it worked in 
> that case!
>
> Isaiah:
>
> I had tried dependency walker before I discovered that I could make it 
> work by launching via cygwin. The unresolved DLLs that it reports are:
>
> API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL
> API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
> API-MS-WIN-CORE-WINRT-L1-1-0.DLL
> API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
> API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
> API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL
> DCOMP.DLL
> IESHIMS.DLL
>
> My subsequent googles suggested that these were really red herrings, but 
> any insight you may have would be very much appreciated.
>
>
>

Reply via email to