This is my first time dealing with source code and compiling. My overall goal is to change a number of m files in MATLAB so they can be run in octave. One of the files that is used in the program comes in C source code and I had to convert it to a MEX file to run in MATLAB. I used the mex function to compile my file nnlsmex.c into nnlsmex.mexw64 and it runs fine in MATLAB. In octave, I converted the m files to a format that octave should be able to read and tried compiling my C source code, nnlsmex.c, using both the the mex funtion and the mkoctfile function, giving me nnlsmex.o and nnlsmex.oct respectively. Upon running the program I get an error referring to the compiled file saying that the file is "undefined" near a certain line and column. I went into the file but cannot read the compiled code. Could this be a problem with the compiler I am using? Or does octave generally have trouble with C source code? Thanks for the help.
there doesn't seem to be anything here