Hi,
I'm trying to build the example mex function from the manual:
http://www.gnu.org/software/octave/doc/interpreter/Getting-Started-with-Mex_002dFiles.html#Getting-Started-with-Mex_002dFiles
using the MSVC build of Octave on Windows XP 32 Bit, but am getting the
following output.
octave-3.6.2.exe:15> mex firstmexdemo.c -v
cc-msvc -d -c -D_WIN32 -DWIN32 -D__WIN32__
-IC:\Octave\Octave-3.6.2\include\octave-3.6.2\octave\..
-IC:\Octave\Octave-3.6.2\
include\octave-3.6.2\octave -IC:\Octave\Octave-3.6.2\include -O2 -MD
-wd4244 -fp:strict -fp:except- -I. firstmexdemo.c -
o firstmexdemo.o
cl -nologo -c -D_WIN32 -DWIN32 -D__WIN32__
-IC:\Octave\Octave-3.6.2\include\octave-3.6.2\octave\..
-IC:\Octave\Octave-3.6.2\i
nclude\octave-3.6.2\octave -IC:\Octave\Octave-3.6.2\include -O2 -MD -wd4244
-fp:strict -fp:except- -I. firstmexdemo.c -Fofirs
tmexdemo.o
cc-msvc -d -shared -o firstmexdemo.mex firstmexdemo.o
-Wl,-export:mexFunction -LC:\Octave\Octave-3.6.2\lib\octave\3.6.2 -
LC:\Octave\Octave-3.6.2\lib -loctinterp -loctave -lcruft
link -nologo -DLL -out:firstmexdemo.mex firstmexdemo.o
-LIBPATH:C:\Octave\Octave-3.6.2\lib\octave\3.6.2 -LIBPATH:C:\Octave\Oc
tave-3.6.2\lib octinterp.lib octave.lib cruft.lib -export:mexFunction
dirent.lib msvcmath.lib
warning: unable to find mkoctfile in expected location:
`C:\Octave\Octave-3.6.2\bin\mkoctfile-3.6.2'
warning: mkoctfile exited with failure status
octave-3.6.2.exe:16>
Any suggestions for what I'm doing wrong? The file 'mkoctfile-3.6.2.exe' is
in the specified location.
Do you have VS2010 installed and accessible in your PATH?
Michael.