[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple definition of mexFunction

From: John W. Eaton
Subject: multiple definition of mexFunction
Date: Wed, 10 Dec 2008 12:34:23 -0700

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]