No BSD License  

Highlights from
cppmex

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 137.74 KB File ID: #2554

cppmex

by Jerome Lacaille

 

18 Oct 2002 (Updated 21 Oct 2002)

Compile mex-functions with C++ Math Library and the mwArray matrix.

| Watch this File

File Information
Description

Mex-functions can be compiled using the C structure mxArray. But it's also possible to use the C++ mwArrays and all the C++ math library. Use "cppmex -setup" to initialise the compiler for your installation and then type cppmex instead of mex. Now the entry point become void cppMexFunction(int nlhs, mwArray mlhs[], int nrhs, mwArray mrhs[]).

MATLAB release MATLAB 6.5 (R13)
Other requirements Tested with Microsoft systems Win2K, WinNT, Win98. Work with versions 6.1 (R12) and 6.5 (R13) of Matlab.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
28 Nov 2004 Matthias Frank

It's a really helpfull extension to the compiler. It make it very easy to write and to translate mex files.
Thanks to Jerome

06 Jun 2006 Jian Wang

Thanks!

06 Jan 2009 Nguyen Thang

I found error when run:
>> cppmex -setup
??? Error using ==> cppmex_setup at 8
Can't find <C:\Program Files\MATLAB\R2008a\extern\include\libmmfile.mlib>.

Error in ==> cppmex at 60
    cppmex_setup ;

Plz help me! many thanks.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
external interface Jerome Lacaille 22 Oct 2008 06:52:58
compiler mex Jerome Lacaille 22 Oct 2008 06:52:58
c Jerome Lacaille 22 Oct 2008 06:52:58
mwarray Jerome Lacaille 22 Oct 2008 06:52:58
mxarray Jerome Lacaille 22 Oct 2008 06:52:58
mexfunction Jerome Lacaille 22 Oct 2008 06:52:58

Contact us at files@mathworks.com