Sharedmatrix installed proeblem because matlab can not open shm.h

run sharedmatrix_install.m
There present
sharedmatrix.c(37) : fatal error C1083: Can't open included file: 'sys/shm.h': No such file or directory
C:\PROGRA~1\MATLAB\R2012A\BIN\MEX.PL: Error: Compile of 'sharedmatrix.c' failed.
Error using mex (line 206)
Unable to complete successfully.
Error in sharedmatrix_install (line 12)
mex -largeArrayDims -O -v sharedmatrix.c
My C++ compiler is Microsoft Visual C++ 2008 SP1
Is there anyone know how to resolve this problem?
Thanks!

 Accepted Answer

Did you install Boost InterProcess as indicated in the requirements for Windows?

2 Comments

Do you know how to get Boost InterProcess?
Hi, Walter Roberson
I still have some problem when installing sharedmatrix even if following the indicate that http://www.mathworks.com/matlabcentral/answers/57864-c-mex-compilation-error-sharedmemory-cpp
Building with 'Microsoft Windows SDK 7.1 (C++)'. cl /c /GR /W3 /EHs /nologo /MD -IP:\boost_1_59_0 -I"C:\Program Files\MATLAB\R2015b\extern\include" -I"C:\Program Files\MATLAB\R2015b\simulink\include" /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /O2 /Oy- /DNDEBUG "C:\Program Files\MATLAB\R2015b\SharedMemory.cpp" /FoC:\Users\JLAB\AppData\Local\Temp\mex_1456695723244226_6552\SharedMemory.obj SharedMemory.cpp c:\program files\matlab\r2015b\SharedMemStack.hpp(357) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data C:\Program Files\MATLAB\R2015b\SharedMemory.cpp(125) : warning C4996: 'strcmpi': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strcmpi. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(245) : see declaration of 'strcmpi' C:\Program Files\MATLAB\R2015b\SharedMemory.cpp(177) : warning C4996: 'strcmpi': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strcmpi. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(245) : see declaration of 'strcmpi' C:\Program Files\MATLAB\R2015b\SharedMemory.cpp(231) : warning C4996: 'strcmpi': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strcmpi. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(245) : see declaration of 'strcmpi' C:\Program Files\MATLAB\R2015b\SharedMemory.cpp(262) : warning C4996: 'strcmpi': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strcmpi. See online help for details. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(245) : see declaration of 'strcmpi' C:\Program Files\MATLAB\R2015b\SharedMemory.cpp(327) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data C:\Program Files\MATLAB\R2015b\SharedMemory.cpp(455) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data C:\Program Files\MATLAB\R2015b\SharedMemory.cpp(461) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data C:\Program Files\MATLAB\R2015b\SharedMemory.cpp(473) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data C:\Program Files\MATLAB\R2015b\SharedMemory.cpp(699) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data C:\Program Files\MATLAB\R2015b\SharedMemory.cpp(920) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
link /nologo /manifest /DLL /EXPORT:mexFunction C:\Users\JLAB\AppData\Local\Temp\mex_1456695723244226_6552\SharedMemory.obj /LIBPATH:"C:\Program Files\MATLAB\R2015b\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /out:SharedMemory.mexw64 Error using mex LINK : fatal error LNK1104: cannot open file 'SharedMemory.mexw64'

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Asked:

on 21 Aug 2015

Commented:

on 9 Oct 2015

Community Treasure Hunt

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

Start Hunting!