multiple definition of mexFunction
John W. Eaton
jwe at octave.org
Wed Dec 10 13:34:23 CST 2008
On 28-Nov-2008, jiapei100 wrote:
| How to deal with multiple definition of mexFunction?
|
| You know, for every .c /.cpp file, in order to call octave/matlab functions,
| I need to declare a mexFunction, which actually violates C/C++ syntax... Can
| anybody give me a hint how to deal with it?
Why do you say that it violates C/C++ syntax? It seems to work for me
to have multiple mex functions loaded at the same time. You just
can't define more than one mexFunction per source file. Do you know
of an actual compiler/dynamic linker which fails to handle this the
way we expect?
jwe
More information about the Help-octave
mailing list