MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

# Thread Subject: How to Mex a cpp file in Matlab

 Subject: How to Mex a cpp file in Matlab From: Richard Crozier Date: 23 Apr, 2013 09:41:09 Message: 2 of 4 Have you told mex where to find the header files? You can add include directories with the -I flag, like a normal compiler.
 Subject: How to Mex a cpp file in Matlab From: Reza monfaredi Date: 23 Apr, 2013 15:41:08 Message: 3 of 4 "Richard Crozier" wrote in message ... > Have you told mex where to find the header files? You can add include directories with the -I flag, like a normal compiler. Hi Richard, I added the header files to the Matlab include folder for now. As you see in the error lines, the compiler has found the header files and addressed some lines in the header file which has error.
 Subject: How to Mex a cpp file in Matlab From: Richard Crozier Date: 23 Apr, 2013 20:50:09 Message: 4 of 4 "Reza monfaredi" wrote in message ... > "Richard Crozier" wrote in message ... > > Have you told mex where to find the header files? You can add include directories with the -I flag, like a normal compiler. > > Hi Richard, > I added the header files to the Matlab include folder for now. As you see in the error lines, the compiler has found the header files and addressed some lines in the header file which has error. Ok, but is HHD defined in those header files? I don't think the compiler knows what it is. Alternatively, do you need to use a namespace for these types?