Socket Programming using C++ in Matlab

  • Follow


I have a C++ code for doing the socket programming. I need to know how to compile the C++ file in Matlab. In the help file I came across the need for converting that as a mex file. I tried to execute the sample .cpp files given as examples but I keep getting the error "Matlabroot\R2008A\BIN\MEX.PL: Error: 'mexcpp.cpp' not found."

Can Someone brief me what I can do to implement socket programming in Matlab. 

Thanks,

Jai
0
Reply Jaianand 4/27/2010 7:43:05 PM

"Jaianand " <jaianand@coolvirgo.com> wrote in message <hr7eo9$mho$1@fred.mathworks.com>...
> I have a C++ code for doing the socket programming. I need to know how to compile the C++ file in Matlab. In the help file I came across the need for converting that as a mex file. I tried to execute the sample .cpp files given as examples but I keep getting the error "Matlabroot\R2008A\BIN\MEX.PL: Error: 'mexcpp.cpp' not found."
> 
> Can Someone brief me what I can do to implement socket programming in Matlab. 

I think you need to just get a simple mex routine running first, *then* worry about moving on to other things. What, exactly, did you type at the prompt when attempting to compile your test mex routine?

James Tursa
0
Reply James 4/27/2010 8:15:21 PM


 I think you need to just get a simple mex routine running first, *then* worry about moving on to other things. What, exactly, did you type at the prompt when attempting to compile your test mex routine?
> 
> James Tursa

I used the command mex mexcpp.cp That is the command given in the help file to compile the code. 
Error I am getting is "matlabroot\R2008A\BIN\MEX.PL: Error: 'mexcpp.cpp' not found." 
0
Reply Jaianand 4/27/2010 10:30:25 PM

2 Replies
712 Views

(page loaded in 0.038 seconds)

Similiar Articles:













7/22/2012 10:01:04 PM


Reply: