# include <fintrf.h>
subroutine mexFunction ( nlhs, plhs, nrhs, prhs )
c*********************************************************************72
c
cc MEXFUNCTION is a MATLAB/F77 interface for the factorial function.
c
c Discussion:
c
c The MATLAB user types
c
c integer plhs(*), prhs(*)
c integer nlhs, nrhs
integer nlhs
integer nrhs
mwpointer plhs(nlhs)
mwpointer prhs(nrhs)
call mexPrintf('Hello MATLAB World!')
return
end
>> mex mexHelloWorld.F
>> mexHelloWorld
Hello MATLAB World!>>
>>
Ubuntu下GCC、G++和gfortran版本切换
Linux升级GCC 4.8.1清晰简明教程(Ubuntu 12.04 64位版为例)
在CentOS 6.4中编译安装GCC 4.8.1 + GDB 7.6.1 + Eclipse 在CentOS 6.4中编译安装GCC 4.8.1 + GDB 7.6.1 + Eclipse