[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building snapshot versions for Windows
From: |
Clemens Buchacher |
Subject: |
Re: Building snapshot versions for Windows |
Date: |
Thu, 9 May 2013 11:10:54 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, May 06, 2013 at 12:50:49AM +0200, Philip Nienhuis wrote:
>
> Anyway trying the example in bug #37122 with tonight's MXE build on
> Windows XP gets you this:
>
> >> cd c:/tmp/mex
> >> mex mex_test.c subdir/f.c subdir/g.c
> mex_test.c:3:36: error: declaration of 'plhs' as array of voids
> mex_test.c:3:68: error: declaration of 'prhs' as array of voids
> g++: error: mex_test.o: No such file or directory
> warning: unable to find mkoctfile in expected location:
> 'X:\Octave\octave-3.7.3+_MXE\bin\mkoctfile-3.7.3+'
> warning: mkoctfile exited with failure status
> >>
>
> Apparently there are errors in the example itself.
Yes, I failed to define mexFunction correctly. It should have been:
/* file: mex_test.c */
#include "mex.h"
void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) {}
/* file: subdir/f.c */
void f() {}
/* file: subdir/g.c */
void g() {}
Clemens